Oliver Walters
ecc7bd2d5b
Unit test fixes
2021-09-07 22:27:39 +10:00
Oliver
5ab4be7025
Unit test fixes
2021-09-07 17:36:53 +10:00
Oliver
cbd291849c
More unit test fixes
2021-07-09 01:49:17 +10:00
Oliver Walters
a1203aa1e5
Fixes for unit testing
2021-05-11 21:22:54 +10:00
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
6037f1452a
Unit testing for new feature
2021-02-19 15:50:32 +11:00
Oliver Walters
08cc866e74
Add function to make barcode for build order
2021-02-17 13:47:14 +11:00
Oliver Walters
7d38507785
Merge remote-tracking branch 'inventree/master' into simple-qr-codes
2021-02-01 12:24:16 +11:00
Oliver Walters
8fda2cf745
Fixes for unit tests
2021-01-29 12:47:46 +11:00
Oliver Walters
5c9dd93ff1
More unit test fix
2021-01-22 12:22:29 +11:00
Oliver Walters
d1ce0f062e
Improve unit testing for StockItem API
2021-01-04 01:22:43 +11:00
Oliver Walters
07cda765f0
Add "expiry_date" field to StockItem model
...
- Also adds "is_expired" function
2021-01-03 23:56:35 +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
f1b83f1c17
Update fixtues for unit testing
2020-11-01 15:34:42 +11:00
Oliver Walters
95fadf1300
Update unit testing
2020-10-30 23:08:12 +11:00
Oliver Walters
091a9d9803
Refactor how form errors are handled
...
- When in doubt, refer to the django docs
- There was a *much* better way (thanks, form.add_error)!
- The anti-pattern was deleted, and lo, there was much rejoicing
- Some other refactoring too
2020-10-28 23:33:33 +11:00
Oliver Walters
48e050d317
Add some more unit tests and validation code for the StockItem model
...
- Ensure that the build part matches the stockitem part!
2020-10-05 00:49:00 +11:00
Oliver Walters
c1595396c4
Unit testing: fix PEP issues
2020-10-05 00:29:31 +11:00
Oliver Walters
fe3a72c6cc
Add some unit testing
2020-10-05 00:29:06 +11:00
Oliver Walters
d8a74ad8b7
Style fixes
2020-09-28 20:08:08 +10:00
Oliver Walters
f409bfd72b
More fixes
2020-09-28 19:41:41 +10:00
Oliver Walters
042956ad48
Fix unit test
2020-09-28 19:27:18 +10:00
Oliver Walters
74f25ee7f9
Part: Extend logic for "latest" serial number
...
- Return value if it is a string
- Remove 'getNextSerialNumber' function
- Improve functionality of function which returns serial number placeholder string
2020-09-01 20:16:46 +10:00
Ben Charlton
06552832cb
Style corrections
2020-08-28 17:30:16 +01:00
Ben Charlton
9c2d13b487
test non-numeric serials are handled correctly for ranges
2020-08-24 20:04:10 +01:00
Ben Charlton
d5a374f1fd
Make serial number suggestion DB independent, handle mixed types more cleanly and test
2020-08-24 19:49:32 +01:00
Ben Charlton
23cc3d9b06
Handle 'next serial' more gracefully
2020-08-21 19:17:58 +01:00
Ben Charlton
c31b30bf83
Fix simple tests
2020-08-21 18:53:51 +01:00
Oliver Walters
22220493bd
Add unit tests
2020-05-24 21:10:00 +10:00
Oliver Walters
1cc0977816
Display testing status for a stock item
2020-05-17 22:33:41 +10:00
Oliver Walters
6cb017bbfd
Add functions to test if a stock item has passed all tests
2020-05-17 22:03:55 +10:00
Oliver Walters
17f241774f
Add function to generate "keys" for test results.
...
- As the keys are to be used for dict-based lookup (in a template) then they cannot contains spaces.
- May as well enforce lower-case encoding!
2020-05-17 12:59:03 +10:00
Oliver Walters
d6a56da441
PEP fixes
2020-05-16 21:15:14 +10:00
Oliver Walters
df91b8cf4d
Add function to get all test results as a map
...
- This will be required for pushing out to a test report
2020-05-16 20:45:10 +10:00
Oliver Walters
2bb9fd9955
Add some unit testing for the new model
2020-05-16 20:27:01 +10:00
Oliver Walters
8a99062704
PEP fixes
2020-05-16 17:52:25 +10:00
Oliver Walters
3d0bea15ae
Refactor function naming
2020-05-16 12:03:18 +10:00
Oliver Walters
ea88a03b5a
More serial number validation and unit testing
...
-
2020-05-16 08:43:57 +10:00
Oliver Walters
068c237c6e
remove failing test
2020-02-18 23:59:37 +11:00
Oliver Walters
49d5573f8b
Bug fix: Update child/parent relationship when a StockItem is deleted
...
- Pass the child items up to the parent of the deleted item
- Fix unit tests
2020-02-18 08:42:55 +11:00
Oliver Walters
dbdbe69f7f
Bug fix for test cases
2019-11-19 10:19:52 +11:00
Oliver Walters
dac61eafa2
Fixed tests
...
- Tree classes now need extra configuration in the fixture
- Check for null pk when cleaning a tree node
2019-09-08 19:41:54 +10:00
Oliver Walters
34bfdea4b5
Test another invalid serialization
2019-08-29 23:50:33 +10:00
Oliver Walters
937bcd41d6
Fix tests for stock serialization
2019-08-29 07:37:44 +10:00
Oliver Walters
43967e302b
Add ablity to serialize an existing quantity of stock
...
- Do not have to serialize all the stock
- Add tests
- Add function to copy entire stock transaction history
2019-08-28 21:12:16 +10:00
Oliver Walters
150c68e65b
Bug fix
...
- Turns out 'item_count' was actually used for something (that I wrote... recently...)
2019-05-13 18:52:54 +10:00
Oliver Walters
b7d3bbd836
PEP
2019-05-13 18:46:48 +10:00
Oliver Walters
0813f8cbd5
More test coverage for Stock
2019-05-13 18:45:52 +10:00
Oliver Walters
f410957d8d
Refactored Stock test to use fixtures
2019-05-12 21:46:38 +10:00
Oliver Walters
f36f02b27f
Tests for stock app
...
- Increase coverage of Stock/models.py to 84%
2019-04-25 17:30:44 +10:00