Michael van Tellingen
be8a2795c7
Rename test file to match module tested.
As in `test_model.py` -> `test_models.py`
преди 9 години
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 години
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 години
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 години
Xavier Ordoquy
0a1b4a60c7
assertEquals deprecated in favor of assertEqual
преди 12 години
David Winterbottom
779f4c4739
Use '' as default instead of None in payment methods
Write a few more tests at the same time.
преди 12 години
David Winterbottom
c9a734a8c9
Adjust bankcard model to provide an obfuscated number property
Useful in templates where the bankcard form is rendered. Eg:
{{ bankcard_form.bankcard.obfuscated_number }}
преди 12 години
David Winterbottom
441f9ffc1b
Update bankcard model
преди 12 години
David Winterbottom
f9799d5029
Reorganise payment tests
преди 12 години