Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscberrocal committed Aug 24, 2021
2 parents 7a9d1cb + 22dbfb3 commit 34fb07d
Show file tree
Hide file tree
Showing 36 changed files with 124 additions and 1,092 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ patch.diff
\.DS_Store

django_test_tools/django-test-tool\.sqlite3

venv/
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ For the following models
comments = models.TextField(null=True, blank=True)
running `python manage.py generate_factories example.servers > ./output/factories.py` will create the following factories

.. code-block:: python
Expand Down
8 changes: 0 additions & 8 deletions compose/ansible/Dockerfile

This file was deleted.

23 changes: 0 additions & 23 deletions compose/django/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions compose/django/start-dev.sh

This file was deleted.

33 changes: 0 additions & 33 deletions dev.yml

This file was deleted.

2 changes: 1 addition & 1 deletion django_test_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.10.7'
__version__ = '2.0.0'
1 change: 1 addition & 0 deletions django_test_tools/app_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def _convert_field_to_dict(self, field, field_list):
field_dict['field_name'] = field.name
field_dict['type'] = type(field).__name__
field_dict['unique'] = field.unique
field_dict['primary_key'] = field.primary_key
field_dict['editable'] = field.editable
if hasattr(field, 'choices') and field.choices is not None:
field_dict['choices_type'] = type(field.choices).__name__
Expand Down
Empty file.
113 changes: 0 additions & 113 deletions django_test_tools/flake8/parsers.py

This file was deleted.

8 changes: 4 additions & 4 deletions django_test_tools/generators/model_test_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ def test_create_batch(self):
PRINT_TEST_ATTRIBUTE_COUNT = """
def test_attribute_count(self):
\"\"\"
Test that all attributes of {0} server are counted. It will count the primary key and all editable attributes.
This test should break if a new attribute is added.
Test that all attributes of {0} server are counted. It will count the primary key and
all editable attributes. This test should break if a new attribute is added.
\"\"\"
{1} = {0}Factory.create()
{1}_dict = model_to_dict({1})
self.assertEqual(len({1}_dict.keys()), {2})
"""

PRINT_TEST_ATTRIBUTE_CONTENT = """
def test_attribute_content(self):
\"\"\"
Test that all attributes of {0} server have content. This test will break if an attributes name is changed.
Test that all attributes of {0} server have content. This test will break if an attributes name
is changed.
\"\"\"
{1} = {0}Factory.create()
"""
Expand Down
Empty file removed django_test_tools/git/__init__.py
Empty file.
138 changes: 0 additions & 138 deletions django_test_tools/git/helpers.py

This file was deleted.

0 comments on commit 34fb07d

Please sign in to comment.