Matthias
d884e62be1
[FR] Confirm to W293
...
Fixes #2335
2021-11-23 00:28:23 +01:00
Oliver
78ac40083a
Fixes for stock api unit tests
...
- Remove old unit tests
- Require quantity when creating a new stock item
2021-11-05 00:27:26 +11:00
Oliver
95e7cc7a5d
Fixes for unit tests
2021-10-06 08:56:24 +11:00
Oliver
62e62af5fc
PEP style fixes
2021-09-28 10:41:30 +10:00
Oliver
d9704f4123
Add unit test for deleting stock items via the API
2021-09-28 10:41:03 +10:00
Oliver
9c9407b1ab
Add unit test for catching bug
...
- Turns out that in an image was uploaded with more than ~2000 vertical pixels it would crash
- Smaller images worked fine?
2021-08-25 14:48:45 +10:00
Oliver
bb8b85c375
Separate purchase_price and purchase_price_currency for StockItem serializer
...
- Add "purchase_price_string" for a read-only stringified representation
- Unit testing
2021-08-23 21:44:12 +10:00
Oliver
30fd3c8841
Unit test fixes
2021-07-12 22:03:36 +10:00
Oliver Walters
7505d7b3c5
Unit test fixes
2021-06-27 00:47:12 +10:00
Matthias
f2b0717d10
removes all lines consisting only of spaces
...
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
Oliver Walters
90feb6d210
Server-side paginatino for build orders
2021-02-28 20:31:01 +11:00
Oliver Walters
b315b958b0
PEP fixes
2021-02-27 07:56:38 +11:00
Oliver Walters
9d099c81a7
Refactor API tests for stock
2021-02-26 21:53:54 +11:00
eeintech
2f78c7c036
Updated stock tests quantities
2021-01-08 14:05:53 -05:00
Oliver Walters
7ac7e8f969
Fixed unit test
2021-01-06 23:38:01 +11:00
Oliver Walters
9dc9c0fcb7
Auto-populate expiry date for stockitem when created via the API
...
(Now with unit testing!)
2021-01-05 00:21:26 +11:00
Oliver Walters
d1ce0f062e
Improve unit testing for StockItem API
2021-01-04 01:22:43 +11:00
Oliver Walters
ae7fbd6112
Add PEP8-naming extension for flake
...
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
Oliver Walters
3c175a6c8d
Update creation of StockItem via API
...
- If no location is specified, but a default location exists for the part, use that
- If a location is specified (even if it is null) then the specified value is used instead
2020-10-18 22:24:45 +11:00
Oliver Walters
3f59ce3f93
Update unit tests
...
- requires the user to actually have the necessary permissions!
2020-10-06 01:30:36 +11:00
Oliver Walters
911727f7b7
Update test fixtures
...
- Can't assume that pk values will be assigned sensibly!
- Need to hard-code them in
2020-09-02 19:47:07 +10:00
Oliver Walters
59e7474f75
Stock: More unit tests
...
- Add some more tests (would have caught a bug that was there already, darn it)
2020-08-31 20:09:43 +10:00
Oliver Walters
45556058d2
Allow files to be uploaded alongside a test report
...
- Attach the file to the stock item
- Link the uploaded attachment to the test report
2020-05-16 22:53:23 +10:00
Oliver Walters
247cfcc514
Add API unit tests
2020-05-16 21:57:41 +10:00
Oliver Walters
bc91975f2c
Fixes for Stocktransfer API endpoint
2020-04-10 01:01:39 +10:00
Oliver Walters
5b2665edb1
Better API validation
2020-04-10 00:53:04 +10:00
Oliver Walters
41b3f1d39c
API cleanup
...
Add / Remove / Count endpoints now work
2020-04-10 00:03:43 +10:00
Oliver Walters
58a0f40889
Simplifiy stock adjustment APIs
...
- Separate API endpoints for count / add / remove / transfer
- Unit testing
2020-04-09 22:24:05 +10:00
Oliver Walters
1b3f8a9309
Unit testing for the stocktake API
2020-04-09 21:19:13 +10:00
Oliver Walters
0484e62836
PEP fixes
2019-04-27 15:25:40 +10:00
Oliver Walters
e7685951e1
Add (simple) test cases for Stock API
...
- Still a lot of work to do here
2019-04-27 15:24:30 +10:00