robotframework-tablelibrary 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/PKG-INFO +1 -1
  2. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/__about__.py +1 -1
  3. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/utils/file_reader.py +1 -1
  4. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/utils/file_writer.py +6 -6
  5. robotframework_tablelibrary-0.2.1/tests/atest/__init__.robot +17 -0
  6. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/test_settings_scopes.robot +24 -0
  7. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/.github/workflows/build.yml +0 -0
  8. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/.github/workflows/release.yml +0 -0
  9. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/.gitignore +0 -0
  10. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/.pre-commit-config.yaml +0 -0
  11. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/DEVELOPMENT.md +0 -0
  12. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/LICENSE +0 -0
  13. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/README.md +0 -0
  14. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/create_release.sh +0 -0
  15. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/pyproject.toml +0 -0
  16. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/__init__.py +0 -0
  17. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/general/__init__.py +0 -0
  18. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/general/library_attributes.py +0 -0
  19. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/keywords/__init__.py +0 -0
  20. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/keywords/configuration.py +0 -0
  21. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/keywords/excel.py +0 -0
  22. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/keywords/getter.py +0 -0
  23. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/keywords/modifier.py +0 -0
  24. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/keywords/writer.py +0 -0
  25. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/utils/__init__.py +0 -0
  26. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/utils/file_access.py +0 -0
  27. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/utils/file_system.py +0 -0
  28. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/utils/settings.py +0 -0
  29. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/src/Tables/utils/settings_stack.py +0 -0
  30. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/__init__.py +0 -0
  31. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/test_excel.robot +0 -0
  32. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/test_reader.robot +0 -0
  33. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/test_settings.robot +0 -0
  34. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/test_writer.robot +0 -0
  35. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_01.csv +0 -0
  36. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_01.txt +0 -0
  37. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_02.xlsx +0 -0
  38. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_03.parquet +0 -0
  39. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_04.csv +0 -0
  40. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_04.txt +0 -0
  41. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_05.parquet +0 -0
  42. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_06.xlsx +0 -0
  43. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_07.csv +0 -0
  44. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_08.csv +0 -0
  45. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/atest/testdata/example_09_streaming.csv +0 -0
  46. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/__init__.py +0 -0
  47. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/helper/__init__.py +0 -0
  48. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/helper/helpers.py +0 -0
  49. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/keywords/__init__.py +0 -0
  50. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/keywords/conftest.py +0 -0
  51. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/keywords/test_keywords_configuration.py +0 -0
  52. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/keywords/test_keywords_excel.py +0 -0
  53. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/keywords/test_keywords_getter.py +0 -0
  54. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/keywords/test_keywords_init.py +0 -0
  55. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/keywords/test_keywords_modifier.py +0 -0
  56. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/keywords/test_keywords_writer.py +0 -0
  57. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_configuration.py +0 -0
  58. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_getter.py +0 -0
  59. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_tables_init.py +0 -0
  60. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_utils_file_access.py +0 -0
  61. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_utils_file_reader.py +0 -0
  62. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_utils_file_system.py +0 -0
  63. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_utils_file_writer.py +0 -0
  64. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_utils_init.py +0 -0
  65. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_utils_settings.py +0 -0
  66. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/tests/utest/test_utils_settings_stack.py +0 -0
  67. {robotframework_tablelibrary-0.2.0 → robotframework_tablelibrary-0.2.1}/utils/imbus-web-logo.svg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotframework-tablelibrary
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Robot Framework library providing generic table keywords for several table file type like csv or excel.
5
5
  Project-URL: Homepage, https://github.com/imbus/robotframework-tablelibrary
6
6
  Project-URL: Documentation, https://github.com/imbus/robotframework-tablelibrary#readme
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2025-present Marvin Klerx <marvinklerx20@gmail.com>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.2.0"
4
+ __version__ = "0.2.1"
@@ -260,7 +260,7 @@ class FileReader(LibraryAttributes):
260
260
  FileType.Parquet: lambda: self.read_parquet(path),
261
261
  }
262
262
 
263
- self.config.configure_file_type(self.read_data_type(path), Scope.Test)
263
+ self.config.configure_file_type(self.read_data_type(path), Scope.Suite)
264
264
 
265
265
  reader = readers.get(self.file_type)
266
266
  if reader:
@@ -183,7 +183,7 @@ class FileWriter(LibraryAttributes):
183
183
  else:
184
184
  raise TypeError("Invalid file_path type.")
185
185
 
186
- self.config.configure_file_type(self.file_reader.read_data_type(file_path), Scope.Test)
186
+ self.config.configure_file_type(self.file_reader.read_data_type(file_path), Scope.Suite)
187
187
 
188
188
  if isinstance(data, list) and self.file_type == FileType.Parquet:
189
189
  data_df = pd.DataFrame(data[1:], columns=data[0])
@@ -231,7 +231,7 @@ class FileWriter(LibraryAttributes):
231
231
 
232
232
  # overwrite ignore_header for validation keywords
233
233
  self.header = header
234
- self.config.configure_ignore_header(not self.header, Scope.Test)
234
+ self.config.configure_ignore_header(not self.header, Scope.Suite)
235
235
 
236
236
  table_df = self.add_header_in_dataframe(table_df)
237
237
 
@@ -251,14 +251,14 @@ class FileWriter(LibraryAttributes):
251
251
  if row:
252
252
  self.file_reader.validate_row(table_df, axis_row)
253
253
 
254
- if isinstance(axis_column, str):
254
+ if isinstance(axis_column, str) or len(table_df) == 0:
255
255
  table_df.loc[axis_row, axis_column] = data
256
256
  else:
257
257
  table_df.iloc[axis_row, axis_column] = data
258
258
 
259
259
  table_df = self.update_cached_dataframe(table_df)
260
260
 
261
- self.config.configure_ignore_header(original_ignore_header, Scope.Test)
261
+ self.config.configure_ignore_header(original_ignore_header, Scope.Suite)
262
262
  self.header = original_header
263
263
 
264
264
  return self.file_reader.convert_dataframe(table_df, return_type)
@@ -284,7 +284,7 @@ class FileWriter(LibraryAttributes):
284
284
  else:
285
285
  self.header = header
286
286
 
287
- self.config.configure_ignore_header(not self.header, Scope.Test)
287
+ self.config.configure_ignore_header(not self.header, Scope.Suite)
288
288
 
289
289
  table_df = self.add_header_in_dataframe(table_df)
290
290
 
@@ -311,7 +311,7 @@ class FileWriter(LibraryAttributes):
311
311
 
312
312
  self.update_cached_dataframe(table_df)
313
313
 
314
- self.config.configure_ignore_header(original_ignore_header, Scope.Test)
314
+ self.config.configure_ignore_header(original_ignore_header, Scope.Suite)
315
315
  self.header = original_header
316
316
 
317
317
  return table_df
@@ -0,0 +1,17 @@
1
+ *** Settings ***
2
+ Library Tables
3
+ Suite Setup Suite Setup & Teardown - Verify Scope Settings
4
+ Suite Teardown Suite Setup & Teardown - Verify Scope Settings
5
+
6
+
7
+ *** Keywords ***
8
+ Suite Setup & Teardown - Verify Scope Settings
9
+ VAR @{header} = name age
10
+ Tables.Create Table ${header}
11
+ Tables.Insert Row ${{["peter", "55"]}} -1
12
+ Tables.Insert Row ${{["marvin", "26"]}} -1
13
+ ${table} = Tables.Get Table
14
+ Should Be Equal ${table}[0][0] name
15
+ Should Be Equal ${table}[1][0] peter
16
+ Should Be Equal ${table}[2][0] marvin
17
+ Log 1234
@@ -1,8 +1,15 @@
1
1
  *** Settings ***
2
2
  Library Tables ignore_header=True
3
+ Suite Setup Suite Setup & Teardown - Verify Scope Settings
4
+ Suite Teardown Suite Setup & Teardown - Verify Scope Settings
3
5
 
4
6
 
5
7
  *** Test Cases ***
8
+ TC-000 - Verify Test Setup & Teardown
9
+ [Setup] Suite Setup & Teardown - Verify Scope Settings
10
+ [Teardown] Suite Setup & Teardown - Verify Scope Settings
11
+ Log Verify Test Setup and Teardown
12
+
6
13
  TC-001 - Suite Scope - Change Parameter with Scope - Ignore Header - False
7
14
  [Documentation] Set config parameter with suite scope
8
15
  [Setup] Configure Ignore Header ${True}
@@ -34,3 +41,20 @@ TC-002 - Test Scope - Parameter Should Be - Ignore Header - True
34
41
  &{cfg} = Tables.Get Library Configuration
35
42
  Should Be Equal ${cfg.ignore_header} ${True}
36
43
 
44
+
45
+ *** Keywords ***
46
+ Suite Setup & Teardown - Verify Scope Settings
47
+ VAR @{header} = name age
48
+ Configure Ignore Header False
49
+ Tables.Create Table ${header}
50
+ Tables.Append Row ${{["peter", "55"]}}
51
+ Tables.Set Table Row ${{["benni", "30"]}} 0
52
+ Tables.Insert Row ${{["peter", "55"]}} -1
53
+ Tables.Insert Row ${{["marvin", "26"]}} -1
54
+ ${table} = Tables.Get Table
55
+
56
+ Should Be Equal ${table}[0][0] name
57
+ Should Be Equal ${table}[1][0] benni
58
+ Should Be Equal ${table}[2][0] peter
59
+ Should Be Equal ${table}[3][0] marvin
60
+ Tables.Write Table ${table} ${CURDIR}${/}results${/}setupteardown.csv