Commit Graph

82 Commits

Author SHA1 Message Date
Donkie
515722bf4f Attempt to make itest spoolman up check more robust 2024-08-07 15:12:42 +02:00
Donkie
efa93615ec Updated dependencies in integration tests 2024-08-07 14:45:43 +02:00
Donkie
cc7dceb2a3 Fixed backend not supporting editing multi color dir 2024-06-08 22:50:01 +02:00
Donkie
8c164ac55f Added backend support for multi-color filaments 2024-05-28 18:49:24 +02:00
Donkie
b00075ab87 Added backend support to perform exact matches 2024-05-25 20:56:22 +02:00
Donkie
c851950701 Tests fully pass again 2024-05-23 20:13:51 +02:00
Donkie
535fa40ad2 Updated most python dependencies
Primarily FastAPI and Pydantic to v2. Also ruff to latest.

Updated some code to support Pydantic v2
2024-05-23 19:42:27 +02:00
Donkie
c4693d3f34 Implemented used_length spool sort 2024-05-15 20:18:24 +02:00
Donkie
e4d2ecf0dc Filament/vendor find by ext id + integration tests 2024-05-12 21:58:01 +02:00
Matt Gerega
fdec032d19 Updated handling of higher measurements 2024-04-15 16:41:14 -04:00
Matt Gerega
c6f9abeced Changed initial_weight to be net weight, not gross weight 2024-04-10 11:00:46 -04:00
Matt Gerega
23cfb42ba8 Updated based on PR requests 2024-04-08 17:38:18 -04:00
Matt Gerega
951592ab4c Add more integration tests for spool weights 2024-03-28 09:38:24 -04:00
Matt Gerega
a6ae808389 Added additional integration tests for measure and add 2024-03-28 09:29:39 -04:00
Matt Gerega
19c414da4b Add integration tests for new measure endpoint 2024-03-27 15:44:54 -04:00
Hereward Cooper
c0714e053d change test var name 2024-01-30 14:09:32 -08:00
hcooper
1273b20224 Support dynamic ports 2024-01-23 11:16:57 -08:00
Donkie
f8cc9f7eda Updated integration tests to not require exact match
This matches how we want clients to behave, they should ignore any extra fields that are sent in the response.
2024-01-23 18:58:58 +01:00
Donkie
7972f4d401 Update test_add.py 2024-01-23 18:58:58 +01:00
Donkie
1caae75d81 Update conftest.py 2024-01-23 18:58:57 +01:00
Donkie
4adee1327b Ruff fix 2024-01-23 18:58:57 +01:00
Donkie
a868e1889f Added integration tests for using extra fields 2024-01-23 18:58:57 +01:00
Donkie
36a346bf64 Added restrictions on changing existing fields 2024-01-23 18:58:57 +01:00
Donkie
86e126f775 Added some basic field CRUD tests 2024-01-23 18:58:57 +01:00
Donkie
77ac9d6a5c Added custom extra fields to backend
No integration tests yet, TBD
2024-01-23 18:58:57 +01:00
hcooper
ccfec28bcd Switch from "docker-compose" to "docker compose"
"docker compose" is the modern usage.
2024-01-23 00:09:32 -08:00
Donkie
44da991d47 Added a new backend settings system
This can be used for saving runtime-configurable settings in the database.
2024-01-16 19:17:06 +01:00
pdsccode
28a70d5190 Merged spool price testing into existing test methods 2024-01-07 14:24:14 +01:00
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
cf8d7472f5 Added backend filament search by similar color 2023-12-19 21:37:07 +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
6d68a40313 Added support for multiple string 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
4e0851e7c3 Added full tests for vendor 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