summaryrefslogtreecommitdiff
path: root/tests/fixtures
AgeCommit message (Collapse)Author
2016-03-14Fixed test_dumpdata_progressbar to use the instantiated StringIO object.Jon Dufresne
2016-02-04Fixed #26144 -- Warned when dumping proxy model without concrete parent.Yoong Kang Lim
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.
2016-01-04Fixed #21549 -- Made loaddata's 'fixture not found' warning an exception.Andrew Kuchev
Thanks to mpasternak for the report and Tim Graham for the review.
2015-12-31Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures.Anssi Kääriäinen
Django's test suite often tries to load fixture files from apps that have no fixtures at all. This creates a lot of unnecessary disabling and enabling of constraints which can be expensive on some database. To speed this up, loaddata now first checks if any fixture file matches. If no fixture file is matched, then the command exits before disabling and enabling of constraints is done. The main benefit of this change is seen on MSSQL, where tests on Django 1.8 run hours faster.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-09Refs #22258 -- Fixed an unclosed temporary file in fixtures test.Tim Graham
This prevented the temporary directory from being removed on Windows.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-24Fixed #22258 -- Added progress status for dumpdata when outputting to fileClaude Paroz
Thanks Gwildor Sok for the report and Tim Graham for the review.
2015-06-20Refs #24978 -- Amended test filename to avoid checkout warnings on Windows.Gagaro
2015-06-17Refs #24978 -- Skipped an unsupported test on Windows.Tim Graham
2015-06-13Fixed #24978 -- Escaped special characters in loaddata fixture pathsMoritz Sichert
2015-05-22Fixed #24776 -- Improved apps.get_app_config() error message on ↵Peter Inglesby
fully-qualified package names.
2015-04-16Fixed fixtures tests failure on Python 2 with non-ASCII path.Tim Graham
2015-04-16Fixed #21652 -- Added notification when processing objects in loaddataYitzhak Clark
Added a running count of the objects processed by loaddata when verbosity >= 3.
2015-03-07Prevented some tests from writing in the CWD.Aymeric Augustin
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-17Removed support for initial_data fixtures per deprecation timeline.Tim Graham
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-10-15Fixed #23651 -- Isolated non-existent fixture testsClaude Paroz
Previous versions of the tests were buggy, as initial_data.json did exist and the test wasn't failing. It was finally failing on Python 3.4.2. Thanks Raphaël Hertzog for the report (and Debian bug #765117 contributors).
2014-09-24Removed numbering from the models.py header of some test packages.Loic Bistuer
This is a reliqua from the early days of the modeltests/regressiontests era.
2014-08-08Fixed #23099 -- Removed usage of deprecated initial data in Django's test suite.Tim Graham
Thanks Claude Paroz for assistance with debugging the tests.
2014-03-30Ensure that a file is closed in the testsAlex Gaynor
2014-03-25Fixed #22257 -- Added file output option to dumpdata command.Anubhav Joshi
2014-03-09Fixed #22237 -- Removed some warnings in the test suiteClaude Paroz
Thanks Aymeric Augustin for the report.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-02-12Fixed #22025 -- Listing app followed by app.Model in dumpdata commandEli Bendersky
When invoked as follows: $ python manage.py dumpdata blogapp blogapp.Tag Django would throw a TypeError. This commit fixes the problem and provides a test.
2014-02-09Fixed #21969: Fix behaviour of initial_data with migrated appsAndrew Godwin
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-11Fixed #13252 -- Added ability to serialize with natural primary keys.Tai Lee
Added ``--natural-foreign`` and ``--natural-primary`` options and deprecated the ``--natural`` option to the ``dumpdata`` management command. Added ``use_natural_foreign_keys`` and ``use_natural_primary_keys`` arguments and deprecated the ``use_natural_keys`` argument to ``django.core.serializers.Serializer.serialize()``. Thanks SmileyChris for the suggestion.
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-09-11Fixed #21089 -- Allow TransactionTestcase subclasses to define an empty list ↵Baptiste Mispelon
of fixtures. Thanks to lgs for the report and initial patch.
2013-09-09Removed unneeded imports in tests's __init__.py and unified them.Florian Apolloner
2013-09-03Updated syncdb -> migrate in tests.Tim Graham
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-06-30Stopped calling loaddata with commit=False.Aymeric Augustin
This was a stealth option only used by the tests, and it isn't useful any more since `atomic` provides nested transactions.
2013-06-10Defined available_apps in relevant tests.Aymeric Augustin
Fixed #20483.
2013-05-30Fixed #20509 - Proper parsing for dumpdata --pks option.Tim Graham
Thanks weipin for the report and Baptiste Mispelon for the patch.
2013-05-19Fixed fixtures testing failureAnssi Kääriäinen
The failure was caused by generating the same warning from two tests. The second time the same warning was raised it was swallowed by the "once" simplefilter of warnings.
2013-05-19Fixed #16330 -- added --pks option in dumpdata commandPreston Holmes
Thanks to guettli for the initial ticket and patch, with additional work from mehmetakyuz and Kevin Brolly.
2013-05-19Fixed #18990 -- Loaddata now complains if fixture doesn't existSenko Rasic
If the fixture doesn't exist, loaddata will output a warning. The fixture named "initial_data" is exceptional though; if it doesn't exist, the warning is not emitted. This allows syncdb and flush management commands to attempt to load it without causing spurious warnings. Thanks to Derega, ptone, dirigeant and d1ffuz0r for contributions to the ticket.
2013-05-19Fixed #18990: Loaddata now complains if fixture doesn't existSenko Rasic
The fixture named "initial_data" is exceptional though; if it doesn't exist, the error is not raised. This allows syncdb and flush management commands to attempt to load it without causing an error if it doesn't exist.
2013-03-08Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer
return a QuerySet.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner