Samir Shah
c74c8fe1f4
Fix time-dependent tests.
Switch to using freezegun for tests that depend on date.
6 lat temu
Samir Shah
3f67ce9b76
Apply isort fixes on the whole project.
6 lat temu
Michael van Tellingen
be8a2795c7
Rename test file to match module tested.
As in `test_model.py` -> `test_models.py`
9 lat temu
Michael van Tellingen
0ebe344a27
Merge tests.integration with tests.unit
The idea of splitting integration from unittests is good in theory
but leads to a lot of mental overhead. Besides whenever a tests
interacts with a database it isn't a unittest anyway.
9 lat temu
Michael van Tellingen
28ea962ab6
Rename all tests files from *_tests.py to test_*.py
Better to use filenames which are commonly used in the python word then
custom ones.
9 lat temu
Michael van Tellingen
174d4dcd67
Consolidate `oscar.test.factories` imports in the test modules
10 lat temu
Michael van Tellingen
6fad63a4d0
Split oscar.test.newfactories in multiple modules
Create a factory module per app and move them under the new
oscar.test.factories module.
10 lat temu
Michael van Tellingen
8c32aaf3d9
Replace last occurences of django-dynamic-fixture with factory-boy
10 lat temu
Sergey Maranchuk
1e829b18d8
Ensure a Bankcard's type isn't lost after saving
Before this change, the type of a bankcard would be clobbered by saving
and reloading.
Fixes #1486 , #1487
11 lat temu
Maik Hoepfel
f1c1da93ff
Minor test suite fixes for Python 3 compatibility
TestCase.assertEquals (note the s at the end) has been deprecated.
The only failing tests remaining are CSV related, which is not
surprising.
11 lat temu
David Winterbottom
1c75ef57d8
Add failing test for payment debit method
This sets up failing test for #1128
12 lat temu
David Winterbottom
779f4c4739
Use '' as default instead of None in payment methods
Write a few more tests at the same time.
12 lat temu
David Winterbottom
441f9ffc1b
Update bankcard model
12 lat temu
David Winterbottom
f9799d5029
Reorganise payment tests
12 lat temu