Michael van Tellingen
2aac20719e
Don't use django.template.Context for template rendering
Since Django 1.11 dicts should be passed to template rendering functions
před 8 roky
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.
před 9 roky
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.
před 9 roky
Michael van Tellingen
b1d028e41e
Fix unittests on 1.7/1.8 by fixing TemplateDoesNotExist exception
před 10 roky
Michael van Tellingen
63d6547e98
Various import fixes which were removed in Django 1.9
před 10 roky
David Winterbottom
a64fb47320
Raise a ValueError if a string is passed to get_core_apps
It's such a common error, we should try and give a friendly error
message when it occurs.
Closes #1603 .
před 11 roky
Marco Badan
1a61781152
Fix `TEMPLATE_DIRS` test config
The config was picking the wrong directory so the custom test templates
were not used during tests.
Notes
- Fix missing i18n load tags
- Remove mixed tab/space indentation
- Add two settings tests
před 11 roky
David Winterbottom
314d211284
Moved Oscar's templates into a new folder.
This avoids conflicts with other libraries that use the same trick for
extending templates.
před 13 roky
David Winterbottom
feb8c9a327
Moved tests into separate package.
Also split them into unit and functional tests.
před 13 roky