Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -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 Varrazzo | 2022-12-15 | 1 | -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ärtner | 2022-10-08 | 1 | -7/+7 |
| | | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -191/+373 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 2 | -315/+439 |
| | |||||
* | Fixed #32291 -- Added fixtures compression support to dumpdata. | Paolo Melchiorre | 2021-01-12 | 1 | -2/+80 |
| | |||||
* | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | 2020-11-06 | 1 | -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 Melchiorre | 2020-05-15 | 3 | -0/+20 |
| | |||||
* | Removed redundant assertions in fixtures tests. | François Freitag | 2020-05-13 | 1 | -5/+0 |
| | |||||
* | Added tests for loaddata with gzip/bzip2 compressed fixtures. | Paolo Melchiorre | 2020-05-08 | 2 | -0/+19 |
| | | | | Co-authored-by: Adam Johnson <me@adamj.eu> | ||||
* | Fixed #31051 -- Allowed dumpdata to handle circular references in natural keys. | Matthijs Kooijman | 2020-04-07 | 3 | -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 Kooijman | 2020-04-07 | 3 | -0/+74 |
| | | | | without natural keys. | ||||
* | Refs #26291 -- Added tests for dumpdata with forward references in natural keys. | Matthijs Kooijman | 2020-04-07 | 3 | -5/+33 |
| | |||||
* | Refs #31051 -- Added test for loaddata/dumpdata with circular references ↵ | Matthijs Kooijman | 2020-04-07 | 3 | -2/+46 |
| | | | | without natural keys. | ||||
* | Enforced uniqueness of natural keys used in tests. | Mariusz Felisiak | 2020-04-07 | 1 | -2/+2 |
| | |||||
* | Used assertRaisesMessage() in various tests. | Hasan Ramezani | 2020-02-07 | 1 | -7/+7 |
| | |||||
* | Fixed #31233 -- Closed database connections and cursors after use. | Jon Dufresne | 2020-02-06 | 1 | -1/+2 |
| | |||||
* | Harmonized Windows checks in tests to a single style. | Jon Dufresne | 2019-11-06 | 1 | -1/+1 |
| | |||||
* | Renamed camelCaseTestMethods to snake_case_test_methods | Markus Holtermann | 2019-04-14 | 1 | -2/+2 |
| | |||||
* | Removed default mode='r' argument from calls to open(). | Jon Dufresne | 2019-01-27 | 1 | -3/+3 |
| | |||||
* | Used 4 space hanging indent for dictionaries. | Tim Graham | 2019-01-02 | 1 | -9/+13 |
| | | | Thanks Mariusz Felisiak for auditing. | ||||
* | Followed style guide for model attribute ordering. | Matt Wiens | 2018-12-27 | 1 | -12/+12 |
| | |||||
* | Fixed #26291 -- Allowed loaddata to handle forward references in natural_key ↵ | Peter Inglesby | 2018-07-13 | 4 | -1/+81 |
| | | | | fixtures. | ||||
* | Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage(). | Morgan Aubert | 2018-05-09 | 1 | -9/+2 |
| | |||||
* | Fixed hanging indentation in various code. | Mariusz Felisiak | 2018-03-16 | 1 | -1/+2 |
| | |||||
* | Fixed #28982 -- Simplified code with and/or. | Дилян Палаузов | 2018-01-03 | 1 | -2/+1 |
| | |||||
* | Fixed #28117 -- Added a helpful message in loaddata when psycopg2 can't load ↵ | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 2017-12-30 | 2 | -0/+19 |
| | | | | a fixture due to NUL characters. | ||||
* | Refs #27787 -- Corrected or removed invalid call_command() options. | Chandrakant Kumar | 2017-06-16 | 1 | -3/+3 |
| | |||||
* | Fixed #27978 -- Allowed loaddata to read data from stdin. | Pavel Kulikov | 2017-05-26 | 1 | -0/+29 |
| | | | | | Thanks Squareweave for the django-loaddata-stdin project from which this is adapted. | ||||
* | Fixed spelling of "nonexistent". | Tim Graham | 2017-02-03 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 1 | -1/+1 |
| | |||||
* | Removed unneeded force_text calls in the test suite | Claude Paroz | 2017-01-24 | 1 | -2/+1 |
| | |||||
* | Refs #23919 -- Removed django.test.mock Python 2 compatibility shim. | Tim Graham | 2017-01-20 | 1 | -3/+2 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | 2017-01-18 | 1 | -7/+7 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | 2017-01-18 | 1 | -8/+0 |
| | |||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -2/+0 |
| | |||||
* | Removed available_apps on TestCase subclasses. | Simon Charette | 2017-01-13 | 1 | -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 Charette | 2017-01-13 | 1 | -2/+0 |
| | |||||
* | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | 2016-11-10 | 1 | -8/+4 |
| | |||||
* | Fixed #26826 -- Stripped spaces from dumpdata pks arguments | Claude Paroz | 2016-07-16 | 2 | -1/+21 |
| | | | | Thanks Kevin Graham Foster for the report and Tim Graham for the review. | ||||
* | Fixed #20468 -- Added loaddata --exclude option. | Berker Peksag | 2016-06-09 | 1 | -2/+26 |
| | | | | Thanks Alex Morozov for the initial patch. | ||||
* | Fixed E128 flake8 warnings in tests/. | Tim Graham | 2016-04-08 | 1 | -2/+2 |
| | |||||
* | Fixed test_dumpdata_progressbar to use the instantiated StringIO object. | Jon Dufresne | 2016-03-14 | 1 | -0/+1 |
| | |||||
* | Fixed #26144 -- Warned when dumping proxy model without concrete parent. | Yoong Kang Lim | 2016-02-04 | 2 | -1/+40 |
| | |||||
* | Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵ | Hasan | 2016-01-29 | 1 | -10/+5 |
| | | | | appropriate. | ||||
* | Fixed #21549 -- Made loaddata's 'fixture not found' warning an exception. | Andrew Kuchev | 2016-01-04 | 1 | -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äinen | 2015-12-31 | 1 | -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-12 | 1 | -34/+239 |
| | |||||
* | Refs #22258 -- Fixed an unclosed temporary file in fixtures test. | Tim Graham | 2015-09-09 | 1 | -16/+17 |
| | | | | | This prevented the temporary directory from being removed on Windows. |