summaryrefslogtreecommitdiff
path: root/tests/fixtures
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-1/+0
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* Fixed #33308 -- Added support for psycopg version 3.Daniele Varrazzo2022-12-151-8/+4
| | | | | | | Thanks Simon Charette, Tim Graham, and Adam Johnson for reviews. Co-authored-by: Florian Apolloner <florian@apolloner.eu> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵Gregor Gärtner2022-10-081-7/+7
| | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com>
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-191/+373
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-072-315/+439
|
* Fixed #32291 -- Added fixtures compression support to dumpdata.Paolo Melchiorre2021-01-121-2/+80
|
* Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani2020-11-061-97/+127
| | | | | | | | 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>
* Fixed #31552 -- Added support for LZMA and XZ fixtures to loaddata.Paolo Melchiorre2020-05-153-0/+20
|
* Removed redundant assertions in fixtures tests.François Freitag2020-05-131-5/+0
|
* Added tests for loaddata with gzip/bzip2 compressed fixtures.Paolo Melchiorre2020-05-082-0/+19
| | | | Co-authored-by: Adam Johnson <me@adamj.eu>
* Fixed #31051 -- Allowed dumpdata to handle circular references in natural keys.Matthijs Kooijman2020-04-073-5/+52
| | | | | | | 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.
* Refs #26291 -- Added tests for dumpdata/loaddata with forward references ↵Matthijs Kooijman2020-04-073-0/+74
| | | | without natural keys.
* Refs #26291 -- Added tests for dumpdata with forward references in natural keys.Matthijs Kooijman2020-04-073-5/+33
|
* Refs #31051 -- Added test for loaddata/dumpdata with circular references ↵Matthijs Kooijman2020-04-073-2/+46
| | | | without natural keys.
* Enforced uniqueness of natural keys used in tests.Mariusz Felisiak2020-04-071-2/+2
|
* Used assertRaisesMessage() in various tests.Hasan Ramezani2020-02-071-7/+7
|
* Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne2020-02-061-1/+2
|
* Harmonized Windows checks in tests to a single style.Jon Dufresne2019-11-061-1/+1
|
* Renamed camelCaseTestMethods to snake_case_test_methodsMarkus Holtermann2019-04-141-2/+2
|
* Removed default mode='r' argument from calls to open().Jon Dufresne2019-01-271-3/+3
|
* Used 4 space hanging indent for dictionaries.Tim Graham2019-01-021-9/+13
| | | Thanks Mariusz Felisiak for auditing.
* Followed style guide for model attribute ordering.Matt Wiens2018-12-271-12/+12
|
* Fixed #26291 -- Allowed loaddata to handle forward references in natural_key ↵Peter Inglesby2018-07-134-1/+81
| | | | fixtures.
* Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert2018-05-091-9/+2
|
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-161-1/+2
|
* Fixed #28982 -- Simplified code with and/or.Дилян Палаузов2018-01-031-2/+1
|
* Fixed #28117 -- Added a helpful message in loaddata when psycopg2 can't load ↵Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2017-12-302-0/+19
| | | | a fixture due to NUL characters.
* Refs #27787 -- Corrected or removed invalid call_command() options.Chandrakant Kumar2017-06-161-3/+3
|
* Fixed #27978 -- Allowed loaddata to read data from stdin.Pavel Kulikov2017-05-261-0/+29
| | | | | Thanks Squareweave for the django-loaddata-stdin project from which this is adapted.
* Fixed spelling of "nonexistent".Tim Graham2017-02-031-1/+1
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Removed unneeded force_text calls in the test suiteClaude Paroz2017-01-241-2/+1
|
* Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham2017-01-201-3/+2
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-7/+7
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-8/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Removed available_apps on TestCase subclasses.Simon Charette2017-01-131-1/+0
| | | | | | | 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.
* Made contenttypes and auth apps unavailable when not necessary in tests.Simon Charette2017-01-131-2/+0
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-8/+4
|
* Fixed #26826 -- Stripped spaces from dumpdata pks argumentsClaude Paroz2016-07-162-1/+21
| | | | Thanks Kevin Graham Foster for the report and Tim Graham for the review.
* Fixed #20468 -- Added loaddata --exclude option.Berker Peksag2016-06-091-2/+26
| | | | Thanks Alex Morozov for the initial patch.
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-2/+2
|
* Fixed test_dumpdata_progressbar to use the instantiated StringIO object.Jon Dufresne2016-03-141-0/+1
|
* Fixed #26144 -- Warned when dumping proxy model without concrete parent.Yoong Kang Lim2016-02-042-1/+40
|
* Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan2016-01-291-10/+5
| | | | appropriate.
* Fixed #21549 -- Made loaddata's 'fixture not found' warning an exception.Andrew Kuchev2016-01-041-22/+12
| | | | Thanks to mpasternak for the report and Tim Graham for the review.
* Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures.Anssi Kääriäinen2015-12-311-1/+13
| | | | | | | | | | | | | 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.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-34/+239
|
* Refs #22258 -- Fixed an unclosed temporary file in fixtures test.Tim Graham2015-09-091-16/+17
| | | | | This prevented the temporary directory from being removed on Windows.