Commit Graph

24 Commits

Author SHA1 Message Date
pdsccode
05dfb611cf Revert "Fixed test error that asserts 404 on create"
This reverts commit f13c61b9e9.
2024-01-07 14:17:59 +01:00
pdsccode
f13c61b9e9 Fixed test error that asserts 404 on create 2024-01-07 13:44:04 +01:00
pdsccode
44b20fb360 Fixed code formatting 2024-01-07 13:25:05 +01:00
pdsccode
a3be982632 Fixing test update spool issue 2024-01-06 23:04:53 +01:00
pdsccode
577ed1e680 Changed to show filament price if no spool price set and added tests 2024-01-06 21:42:09 +01:00
Donkie
9595aec675 Fixed registered field having wrong timezone
This happened with at least Postgres, which took it's server's timezone. It's complicated. Let's just set it from our side instead where we have some control.
2023-10-02 21:36:50 +02:00
Donkie
205574fa2c Fixed timezone being returned incorrectly
Happened if you've set TZ to non-UTC.

Apparently astimezone and replace doesn't do the same thing even if tzinfo is None.
2023-10-02 21:36:50 +02:00
Donkie
597dca7c28 Fixed combining empty and non-empty filter
Previously it would then act as a wildcard filter
2023-09-20 21:02:49 +02:00
Donkie
b795680226 Added missing timezone in responses
Fixes #114
2023-09-20 20:13:02 +02:00
Donkie
6f94c17050 Renamed vendor.x to filament.vendor.x in spool API 2023-09-16 11:13:30 +02:00
Donkie
6ee3b8df70 Added support for multiple int where's 2023-09-16 11:13:30 +02:00
Donkie
841cc8b6df Added sort by remaining weight 2023-09-16 11:13:30 +02:00
Donkie
a4d14c5b52 Added X-Total-Count test asserts
Fixed issue with incorrect total count for vendors
2023-09-16 11:13:30 +02:00
Donkie
0f58ddfd88 Modernized vendor tests 2023-09-16 11:13:30 +02:00
Donkie
978773583a Full testing done for filaments
Also added tests for having multiple sorts
2023-09-16 11:13:30 +02:00
Donkie
acc6ab56a5 Fixed tests for non-sqlite dbs 2023-09-16 11:13:30 +02:00
Donkie
aa28e51c28 Added offset and limit tests for spools 2023-09-16 11:13:30 +02:00
Donkie
13994c486f Added module-level fixtures in tests 2023-09-16 11:13:30 +02:00
Donkie
e436aa4975 Added tests for spool find sorting 2023-09-16 11:13:30 +02:00
Donkie
9a7375d781 Added test cases for finding empty spool fields 2023-09-16 11:13:30 +02:00
Donkie
826fde6967 API find nested filters now specified using period
Previously you used underscore, like vendor_name. This made fields like filament_article_number have ambiguous underscores.
2023-09-16 11:13:30 +02:00
Donkie
8e9ca8e305 Fixed ruff in CI 2023-09-04 20:36:02 +02:00
Donkie
e6b30da55d Split spool test_find into individual tests 2023-08-21 22:16:52 +02:00
Donkie
c820112e11 Split up integration tests into individual files 2023-08-21 22:16:52 +02:00