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
8 лет назад
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 лет назад
Michael van Tellingen
b1d028e41e
Fix unittests on 1.7/1.8 by fixing TemplateDoesNotExist exception
10 лет назад
Michael van Tellingen
63d6547e98
Various import fixes which were removed in Django 1.9
10 лет назад
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 .
11 лет назад
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
11 лет назад
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.
13 лет назад
David Winterbottom
feb8c9a327
Moved tests into separate package.
Also split them into unit and functional tests.
13 лет назад