Michael van Tellingen
be8a2795c7
Rename test file to match module tested.
As in `test_model.py` -> `test_models.py`
8 jaren geleden
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.
8 jaren geleden
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.
8 jaren geleden
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 jaren geleden
Xavier Ordoquy
0a1b4a60c7
assertEquals deprecated in favor of assertEqual
12 jaren geleden
David Winterbottom
779f4c4739
Use '' as default instead of None in payment methods
Write a few more tests at the same time.
12 jaren geleden
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 jaren geleden
David Winterbottom
441f9ffc1b
Update bankcard model
12 jaren geleden
David Winterbottom
f9799d5029
Reorganise payment tests
12 jaren geleden