summaryrefslogtreecommitdiff
path: root/tests/fixtures
AgeCommit message (Collapse)Author
2021-01-12Fixed #32291 -- Added fixtures compression support to dumpdata.Paolo Melchiorre
2020-11-06Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani
This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-05-15Fixed #31552 -- Added support for LZMA and XZ fixtures to loaddata.Paolo Melchiorre
2020-05-13Removed redundant assertions in fixtures tests.François Freitag
2020-05-08Added tests for loaddata with gzip/bzip2 compressed fixtures.Paolo Melchiorre
Co-authored-by: Adam Johnson <me@adamj.eu>
2020-04-07Fixed #31051 -- Allowed dumpdata to handle circular references in natural keys.Matthijs Kooijman
Since #26291 forward references in natural keys are properly handled by loaddata, so sorting depenencies in dumpdata doesn't need to break on cycles. This patch allows circular references in natural keys by breaking sort_depenencies() on loops.
2020-04-07Refs #26291 -- Added tests for dumpdata/loaddata with forward references ↵Matthijs Kooijman
without natural keys.
2020-04-07Refs #26291 -- Added tests for dumpdata with forward references in natural keys.Matthijs Kooijman
2020-04-07Refs #31051 -- Added test for loaddata/dumpdata with circular references ↵Matthijs Kooijman
without natural keys.
2020-04-07Enforced uniqueness of natural keys used in tests.Mariusz Felisiak
2020-02-07Used assertRaisesMessage() in various tests.Hasan Ramezani
2020-02-06Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne
2019-11-06Harmonized Windows checks in tests to a single style.Jon Dufresne
2019-04-14Renamed camelCaseTestMethods to snake_case_test_methodsMarkus Holtermann
2019-01-27Removed default mode='r' argument from calls to open().Jon Dufresne
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-12-27Followed style guide for model attribute ordering.Matt Wiens
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-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
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 python_2_unicode_compatible decorator usageClaude Paroz
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-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