diff options
| author | bulve-ad <78788030+bulve-ad@users.noreply.github.com> | 2024-08-27 15:23:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-27 15:23:49 +0100 |
| commit | 6761a7a8558079dc3107d69f2f3affc67e1577ae (patch) | |
| tree | ecf3af44a45084dc3d8f96fd2592f09380f0c51f /tests | |
| parent | 1abb20b7f5ef24117efd7a9f79a4044ddca600e3 (diff) | |
| parent | 0b3c864cdfcc48cbb26d7bdea2a69d0e64e0fb38 (diff) | |
| download | de-project-bentley-6761a7a8558079dc3107d69f2f3affc67e1577ae.tar.gz de-project-bentley-6761a7a8558079dc3107d69f2f3affc67e1577ae.zip | |
Merge pull request #100 from ajschofield/test/transform-helper-functions
pr: test/transform helper functions
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_dataframes.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/test_dataframes.py b/tests/test_dataframes.py index 584ab27..bd81f73 100644 --- a/tests/test_dataframes.py +++ b/tests/test_dataframes.py @@ -252,11 +252,15 @@ class TestCreateFactPayment: "payment": pd.DataFrame( data=[ [ - dt(2020, 5, 17, 6, 15, 20), - dt(2020, 5, 20, 8, 19, 30), + dt.strptime( + "2022-11-03 14:20:49.962846", "%Y-%m-%d %H:%M:%S.%f" + ), + dt.strptime( + "2022-12-14 16:20:49.962194", "%Y-%m-%d %H:%M:%S.%f" + ), 1, "SE18 9QO", - "2020-7-16", + "2020-07-16", ] ], columns=[ @@ -283,5 +287,9 @@ class TestCreateFactPayment: for col in list(result.columns): assert col in expected_cols for col in expected_cols: - if "date" in col: + if "_date" in col: + print(col) assert result[col].dtype == "datetime64[ns]" + if "_time" in col: + print(col) + assert result[col].dtype == "O" # << O for object |
