summaryrefslogtreecommitdiff
path: root/tests/fixtures/tests.py
AgeCommit message (Collapse)Author
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-07-13Fixed #26291 -- Allowed loaddata to handle forward references in natural_key ↵Peter Inglesby
fixtures.
2018-05-09Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2017-12-30Fixed #28117 -- Added a helpful message in loaddata when psycopg2 can't load ↵Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
a fixture due to NUL characters.
2017-06-16Refs #27787 -- Corrected or removed invalid call_command() options.Chandrakant Kumar
2017-05-26Fixed #27978 -- Allowed loaddata to read data from stdin.Pavel Kulikov
Thanks Squareweave for the django-loaddata-stdin project from which this is adapted.
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-13Removed available_apps on TestCase subclasses.Simon Charette
TestCase subclasses are wrapped in a transaction that prevents any data from being persisted between test runs andi thus don't require limiting the tables to be flushed to a subset of available apps like TransactionTestCase subclasses do.
2017-01-13Made contenttypes and auth apps unavailable when not necessary in tests.Simon Charette
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-07-16Fixed #26826 -- Stripped spaces from dumpdata pks argumentsClaude Paroz
Thanks Kevin Graham Foster for the report and Tim Graham for the review.
2016-06-09Fixed #20468 -- Added loaddata --exclude option.Berker Peksag
Thanks Alex Morozov for the initial patch.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
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-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-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
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-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-03Updated syncdb -> migrate in tests.Tim Graham