Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests incompatible with django 2 #54

Open
carlwgeorge opened this issue Apr 6, 2019 · 0 comments
Open

tests incompatible with django 2 #54

carlwgeorge opened this issue Apr 6, 2019 · 0 comments

Comments

@carlwgeorge
Copy link

  • PrettyPrinter version: 0.17.0
  • Python version: 3.7.3
  • Operating System: Fedora 30

Description

requirements_dev.txt pins django at 1.10.8, but the latest version on PyPI is 2.2. I upgraded django and tried to run the tests again, but they failed. The error ModuleNotFoundError: No module named 'notmigrations' is shown several times.

What I Did

$ pip install -U django
$ pytest -v
output (click to expand)
========================================================= test session starts ==========================================================
platform linux -- Python 3.7.3, pytest-4.3.0, py-1.8.0, pluggy-0.9.0 -- /root/prettyprinter-0.17.0/.env/bin/python3
cachedir: .pytest_cache
Django settings: prettyprinter_testproject.settings (from ini file)
rootdir: /root/prettyprinter-0.17.0, inifile: setup.cfg
plugins: pythonpath-0.7.3, django-3.4.7, hypothesis-3.33.0
collected 98 items                                                                                                                     

tests/test_ast.py::test_parsed PASSED                                                                                            [  1%]
tests/test_ast.py::test_pure_node[Name-ast.Name] PASSED                                                                          [  2%]
tests/test_ast.py::test_pure_node[Name-custom.Name] PASSED                                                                       [  3%]
tests/test_attrs.py::test_simple_case PASSED                                                                                     [  4%]
tests/test_attrs.py::test_different_from_default PASSED                                                                          [  5%]
tests/test_attrs.py::test_no_repr_field PASSED                                                                                   [  6%]
tests/test_dataclasses.py::test_simple_case PASSED                                                                               [  7%]
tests/test_dataclasses.py::test_different_from_default PASSED                                                                    [  8%]
tests/test_dataclasses.py::test_no_repr_field PASSED                                                                             [  9%]
tests/test_ipython_repr_pretty.py::test_compat PASSED                                                                            [ 10%]
tests/test_numpy.py::test_numpy_numeric_types[uint8] PASSED                                                                      [ 11%]
tests/test_numpy.py::test_numpy_numeric_types[uint16] PASSED                                                                     [ 12%]
tests/test_numpy.py::test_numpy_numeric_types[uint32] PASSED                                                                     [ 13%]
tests/test_numpy.py::test_numpy_numeric_types[uint64] PASSED                                                                     [ 14%]
tests/test_numpy.py::test_numpy_numeric_types[int8] PASSED                                                                       [ 15%]
tests/test_numpy.py::test_numpy_numeric_types[int16] PASSED                                                                      [ 16%]
tests/test_numpy.py::test_numpy_numeric_types[int32] PASSED                                                                      [ 17%]
tests/test_numpy.py::test_numpy_numeric_types[int64] PASSED                                                                      [ 18%]
tests/test_numpy.py::test_numpy_numeric_types[float16] PASSED                                                                    [ 19%]
tests/test_numpy.py::test_numpy_numeric_types[float32] PASSED                                                                    [ 20%]
tests/test_numpy.py::test_numpy_numeric_types[float64] PASSED                                                                    [ 21%]
tests/test_numpy.py::test_numpy_numeric_types[float128] PASSED                                                                   [ 22%]
tests/test_numpy.py::test_numpy_bool_type PASSED                                                                                 [ 23%]
tests/test_numpy.py::test_array PASSED                                                                                           [ 24%]
tests/test_numpy.py::test_masked_array PASSED                                                                                    [ 25%]
tests/test_prettyprinter.py::test_align PASSED                                                                                   [ 26%]
tests/test_prettyprinter.py::test_fillsep PASSED                                                                                 [ 27%]
tests/test_prettyprinter.py::test_always_breaking PASSED                                                                         [ 28%]
tests/test_prettyprinter.py::test_pretty_json PASSED                                                                             [ 29%]
tests/test_prettyprinter.py::test_perf SKIPPED                                                                                   [ 30%]
tests/test_prettyprinter.py::test_recursive PASSED                                                                               [ 31%]
tests/test_prettyprinter.py::test_all_python_values PASSED                                                                       [ 32%]
tests/test_prettyprinter.py::test_bytes_pprint_equals_repr PASSED                                                                [ 33%]
tests/test_prettyprinter.py::test_readable PASSED                                                                                [ 34%]
tests/test_prettyprinter.py::test_top_level_str PASSED                                                                           [ 35%]
tests/test_prettyprinter.py::test_second_level_str PASSED                                                                        [ 36%]
tests/test_prettyprinter.py::test_single_element_sequence_multiline_strategy PASSED                                              [ 37%]
tests/test_prettyprinter.py::test_str_bug PASSED                                                                                 [ 38%]
tests/test_prettyprinter.py::test_many_cases PASSED                                                                              [ 39%]
tests/test_prettyprinter.py::test_datetime PASSED                                                                                [ 40%]
tests/test_prettyprinter.py::test_nested_structures PASSED                                                                       [ 41%]
tests/test_prettyprinter.py::test_gh_issue_25 PASSED                                                                             [ 42%]
tests/test_prettyprinter.py::test_time_struct_time PASSED                                                                        [ 43%]
tests/test_prettyprinter.py::test_cnamedtuples[value0-True] PASSED                                                               [ 44%]
tests/test_prettyprinter.py::test_cnamedtuples[value1-True] PASSED                                                               [ 45%]
tests/test_prettyprinter.py::test_cnamedtuples[value2-False] PASSED                                                              [ 46%]
tests/test_prettyprinter.py::test_cnamedtuples[None-True] PASSED                                                                 [ 47%]
tests/test_prettyprinter.py::test_cnamedtuples[value4-True] PASSED                                                               [ 48%]
tests/test_prettyprinter.py::test_cnamedtuples[value5-False] PASSED                                                              [ 50%]
tests/test_prettyprinter.py::test_cnamedtuples[value6-False] PASSED                                                              [ 51%]
tests/test_prettyprinter.py::test_cnamedtuples[value7-False] PASSED                                                              [ 52%]
tests/test_prettyprinter.py::test_cnamedtuples[value8-False] PASSED                                                              [ 53%]
tests/test_prettyprinter.py::test_cnamedtuples[value9-False] PASSED                                                              [ 54%]
tests/test_prettyprinter.py::test_cnamedtuples[value10-False] PASSED                                                             [ 55%]
tests/test_prettyprinter.py::test_cnamedtuples[value11-True] PASSED                                                              [ 56%]
tests/test_prettyprinter.py::test_gh_issue_28 PASSED                                                                             [ 57%]
tests/test_prettyprinter.py::test_large_data_performance PASSED                                                                  [ 58%]
tests/test_prettyprinter.py::test_str_to_lines PASSED                                                                            [ 59%]
tests/test_prettyprinter.py::test_is_registered PASSED                                                                           [ 60%]
tests/test_prettyprinter.py::test_is_registered_subclass PASSED                                                                  [ 61%]
tests/test_prettyprinter.py::test_pretty_repr PASSED                                                                             [ 62%]
tests/test_prettyprinter.py::test_pretty_repr_unregistered_uses_default_repr_and_warns PASSED                                    [ 63%]
tests/test_prettyprinter.py::test_dict_sorted_by_insertion PASSED                                                                [ 64%]
tests/test_prettyprinter.py::test_sort_dict_keys PASSED                                                                          [ 65%]
tests/test_prettyprinter.py::test_dict_subclass PASSED                                                                           [ 66%]
tests/test_prettyprinter.py::test_list_subclass PASSED                                                                           [ 67%]
tests/test_prettyprinter.py::test_deferred_registration PASSED                                                                   [ 68%]
tests/test_prettyprinter.py::test_deferred_registration_subclass PASSED                                                          [ 69%]
tests/test_prettyprinter.py::test_bad_printer_caught PASSED                                                                      [ 70%]
tests/test_requests.py::test_session PASSED                                                                                      [ 71%]
tests/test_requests.py::test_request PASSED                                                                                      [ 72%]
tests/test_requests.py::test_prepared_request PASSED                                                                             [ 73%]
tests/test_requests.py::test_response PASSED                                                                                     [ 74%]
tests/test_stdlib_definitions.py::test_counter PASSED                                                                            [ 75%]
tests/test_stdlib_definitions.py::test_ordereddict PASSED                                                                        [ 76%]
tests/test_stdlib_definitions.py::test_defaultdict PASSED                                                                        [ 77%]
tests/test_stdlib_definitions.py::test_deque PASSED                                                                              [ 78%]
tests/test_stdlib_definitions.py::test_chainmap PASSED                                                                           [ 79%]
tests/test_stdlib_definitions.py::test_enum PASSED                                                                               [ 80%]
tests/test_stdlib_definitions.py::test_mappingproxytype PASSED                                                                   [ 81%]
tests/test_stdlib_definitions.py::test_uuid PASSED                                                                               [ 82%]
tests/test_stdlib_definitions.py::test_namedtuple PASSED                                                                         [ 83%]
tests/test_stdlib_definitions.py::test_partial[partial] PASSED                                                                   [ 84%]
tests/test_stdlib_definitions.py::test_partial[partialmethod] PASSED                                                             [ 85%]
tests/test_stdlib_definitions.py::test_exception PASSED                                                                          [ 86%]
tests/test_stdlib_definitions.py::test_purepath[PosixPath-PosixPath-args0-'a/../b/c'] PASSED                                     [ 87%]
tests/test_stdlib_definitions.py::test_purepath[PurePosixPath-PurePosixPath-args1-'a/../b/c'] PASSED                             [ 88%]
tests/test_stdlib_definitions.py::test_purepath[WindowsPath-WindowsPath-args2-'C:/../b/c'] SKIPPED                               [ 89%]
tests/test_stdlib_definitions.py::test_purepath[PureWindowsPath-PureWindowsPath-args3-'C:/../b/c'] PASSED                        [ 90%]
tests/test_stdlib_definitions.py::test_purelongpath[PosixPath-PosixPath] PASSED                                                  [ 91%]
tests/test_stdlib_definitions.py::test_purelongpath[PurePosixPath-PurePosixPath] PASSED                                          [ 92%]
tests/test_stdlib_definitions.py::test_purelongpath[WindowsPath-WindowsPath] SKIPPED                                             [ 93%]
tests/test_stdlib_definitions.py::test_purelongpath[PureWindowsPath-PureWindowsPath] PASSED                                      [ 94%]
tests/test_django/coreapp/test_prettyprinter_definitions.py::test_simple_case ERROR                                              [ 95%]
tests/test_django/coreapp/test_prettyprinter_definitions.py::test_blank_field ERROR                                              [ 96%]
tests/test_django/coreapp/test_prettyprinter_definitions.py::test_default_field ERROR                                            [ 97%]
tests/test_django/coreapp/test_prettyprinter_definitions.py::test_choices_display ERROR                                          [ 98%]
tests/test_django/coreapp/test_prettyprinter_definitions.py::test_queryset ERROR                                                 [100%]

================================================================ ERRORS ================================================================
__________________________________________________ ERROR at setup of test_simple_case __________________________________________________

request = <SubRequest '_django_db_marker' for <Function test_simple_case>>

    @pytest.fixture(autouse=True)
    def _django_db_marker(request):
        """Implement the django_db marker, internal to pytest-django.
    
        This will dynamically request the ``db``, ``transactional_db`` or
        ``django_db_reset_sequences`` fixtures as required by the django_db marker.
        """
        marker = request.node.get_closest_marker("django_db")
        if marker:
            transaction, reset_sequences = validate_django_db(marker)
            if reset_sequences:
                request.getfixturevalue("django_db_reset_sequences")
            elif transaction:
                request.getfixturevalue("transactional_db")
            else:
>               request.getfixturevalue("db")

.env/lib64/python3.7/site-packages/pytest_django/plugin.py:485: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.env/lib64/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
    **setup_databases_args
.env/lib64/python3.7/site-packages/django/test/utils.py:174: in setup_databases
    serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.env/lib64/python3.7/site-packages/django/db/backends/base/creation.py:72: in create_test_db
    run_syncdb=True,
.env/lib64/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
    return command.execute(*args, **defaults)
.env/lib64/python3.7/site-packages/django/core/management/base.py:364: in execute
    output = self.handle(*args, **options)
.env/lib64/python3.7/site-packages/django/core/management/base.py:83: in wrapped
    res = handle_func(*args, **kwargs)
.env/lib64/python3.7/site-packages/django/core/management/commands/migrate.py:87: in handle
    executor = MigrationExecutor(connection, self.migration_progress_callback)
.env/lib64/python3.7/site-packages/django/db/migrations/executor.py:18: in __init__
    self.loader = MigrationLoader(self.connection)
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:49: in __init__
    self.build_graph()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:206: in build_graph
    self.load_disk()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:77: in load_disk
    module = import_module(module_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'notmigrations', package = None

    def import_module(name, package=None):
        """Import a module.
    
        The 'package' argument is required when performing a relative import. It
        specifies the package to use as the anchor point from which to resolve the
        relative import to an absolute import.
    
        """
        level = 0
        if name.startswith('.'):
            if not package:
                msg = ("the 'package' argument is required to perform a relative "
                       "import for {!r}")
                raise TypeError(msg.format(name))
            for character in name:
                if character != '.':
                    break
                level += 1
>       return _bootstrap._gcd_import(name[level:], package, level)
E       ModuleNotFoundError: No module named 'notmigrations'

/usr/lib64/python3.7/importlib/__init__.py:127: ModuleNotFoundError
-------------------------------------------------------- Captured stderr setup ---------------------------------------------------------
Creating test database for alias 'default'...
__________________________________________________ ERROR at setup of test_blank_field __________________________________________________

request = <SubRequest '_django_db_marker' for <Function test_blank_field>>

    @pytest.fixture(autouse=True)
    def _django_db_marker(request):
        """Implement the django_db marker, internal to pytest-django.
    
        This will dynamically request the ``db``, ``transactional_db`` or
        ``django_db_reset_sequences`` fixtures as required by the django_db marker.
        """
        marker = request.node.get_closest_marker("django_db")
        if marker:
            transaction, reset_sequences = validate_django_db(marker)
            if reset_sequences:
                request.getfixturevalue("django_db_reset_sequences")
            elif transaction:
                request.getfixturevalue("transactional_db")
            else:
>               request.getfixturevalue("db")

.env/lib64/python3.7/site-packages/pytest_django/plugin.py:485: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.env/lib64/python3.7/site-packages/six.py:692: in reraise
    raise value.with_traceback(tb)
.env/lib64/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
    **setup_databases_args
.env/lib64/python3.7/site-packages/django/test/utils.py:174: in setup_databases
    serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.env/lib64/python3.7/site-packages/django/db/backends/base/creation.py:72: in create_test_db
    run_syncdb=True,
.env/lib64/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
    return command.execute(*args, **defaults)
.env/lib64/python3.7/site-packages/django/core/management/base.py:364: in execute
    output = self.handle(*args, **options)
.env/lib64/python3.7/site-packages/django/core/management/base.py:83: in wrapped
    res = handle_func(*args, **kwargs)
.env/lib64/python3.7/site-packages/django/core/management/commands/migrate.py:87: in handle
    executor = MigrationExecutor(connection, self.migration_progress_callback)
.env/lib64/python3.7/site-packages/django/db/migrations/executor.py:18: in __init__
    self.loader = MigrationLoader(self.connection)
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:49: in __init__
    self.build_graph()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:206: in build_graph
    self.load_disk()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:77: in load_disk
    module = import_module(module_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'notmigrations', package = None

    def import_module(name, package=None):
        """Import a module.
    
        The 'package' argument is required when performing a relative import. It
        specifies the package to use as the anchor point from which to resolve the
        relative import to an absolute import.
    
        """
        level = 0
        if name.startswith('.'):
            if not package:
                msg = ("the 'package' argument is required to perform a relative "
                       "import for {!r}")
                raise TypeError(msg.format(name))
            for character in name:
                if character != '.':
                    break
                level += 1
>       return _bootstrap._gcd_import(name[level:], package, level)
E       ModuleNotFoundError: No module named 'notmigrations'

/usr/lib64/python3.7/importlib/__init__.py:127: ModuleNotFoundError
_________________________________________________ ERROR at setup of test_default_field _________________________________________________

request = <SubRequest '_django_db_marker' for <Function test_default_field>>

    @pytest.fixture(autouse=True)
    def _django_db_marker(request):
        """Implement the django_db marker, internal to pytest-django.
    
        This will dynamically request the ``db``, ``transactional_db`` or
        ``django_db_reset_sequences`` fixtures as required by the django_db marker.
        """
        marker = request.node.get_closest_marker("django_db")
        if marker:
            transaction, reset_sequences = validate_django_db(marker)
            if reset_sequences:
                request.getfixturevalue("django_db_reset_sequences")
            elif transaction:
                request.getfixturevalue("transactional_db")
            else:
>               request.getfixturevalue("db")

.env/lib64/python3.7/site-packages/pytest_django/plugin.py:485: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.env/lib64/python3.7/site-packages/six.py:692: in reraise
    raise value.with_traceback(tb)
.env/lib64/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
    **setup_databases_args
.env/lib64/python3.7/site-packages/django/test/utils.py:174: in setup_databases
    serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.env/lib64/python3.7/site-packages/django/db/backends/base/creation.py:72: in create_test_db
    run_syncdb=True,
.env/lib64/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
    return command.execute(*args, **defaults)
.env/lib64/python3.7/site-packages/django/core/management/base.py:364: in execute
    output = self.handle(*args, **options)
.env/lib64/python3.7/site-packages/django/core/management/base.py:83: in wrapped
    res = handle_func(*args, **kwargs)
.env/lib64/python3.7/site-packages/django/core/management/commands/migrate.py:87: in handle
    executor = MigrationExecutor(connection, self.migration_progress_callback)
.env/lib64/python3.7/site-packages/django/db/migrations/executor.py:18: in __init__
    self.loader = MigrationLoader(self.connection)
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:49: in __init__
    self.build_graph()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:206: in build_graph
    self.load_disk()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:77: in load_disk
    module = import_module(module_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'notmigrations', package = None

    def import_module(name, package=None):
        """Import a module.
    
        The 'package' argument is required when performing a relative import. It
        specifies the package to use as the anchor point from which to resolve the
        relative import to an absolute import.
    
        """
        level = 0
        if name.startswith('.'):
            if not package:
                msg = ("the 'package' argument is required to perform a relative "
                       "import for {!r}")
                raise TypeError(msg.format(name))
            for character in name:
                if character != '.':
                    break
                level += 1
>       return _bootstrap._gcd_import(name[level:], package, level)
E       ModuleNotFoundError: No module named 'notmigrations'

/usr/lib64/python3.7/importlib/__init__.py:127: ModuleNotFoundError
________________________________________________ ERROR at setup of test_choices_display ________________________________________________

request = <SubRequest '_django_db_marker' for <Function test_choices_display>>

    @pytest.fixture(autouse=True)
    def _django_db_marker(request):
        """Implement the django_db marker, internal to pytest-django.
    
        This will dynamically request the ``db``, ``transactional_db`` or
        ``django_db_reset_sequences`` fixtures as required by the django_db marker.
        """
        marker = request.node.get_closest_marker("django_db")
        if marker:
            transaction, reset_sequences = validate_django_db(marker)
            if reset_sequences:
                request.getfixturevalue("django_db_reset_sequences")
            elif transaction:
                request.getfixturevalue("transactional_db")
            else:
>               request.getfixturevalue("db")

.env/lib64/python3.7/site-packages/pytest_django/plugin.py:485: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.env/lib64/python3.7/site-packages/six.py:692: in reraise
    raise value.with_traceback(tb)
.env/lib64/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
    **setup_databases_args
.env/lib64/python3.7/site-packages/django/test/utils.py:174: in setup_databases
    serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.env/lib64/python3.7/site-packages/django/db/backends/base/creation.py:72: in create_test_db
    run_syncdb=True,
.env/lib64/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
    return command.execute(*args, **defaults)
.env/lib64/python3.7/site-packages/django/core/management/base.py:364: in execute
    output = self.handle(*args, **options)
.env/lib64/python3.7/site-packages/django/core/management/base.py:83: in wrapped
    res = handle_func(*args, **kwargs)
.env/lib64/python3.7/site-packages/django/core/management/commands/migrate.py:87: in handle
    executor = MigrationExecutor(connection, self.migration_progress_callback)
.env/lib64/python3.7/site-packages/django/db/migrations/executor.py:18: in __init__
    self.loader = MigrationLoader(self.connection)
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:49: in __init__
    self.build_graph()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:206: in build_graph
    self.load_disk()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:77: in load_disk
    module = import_module(module_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'notmigrations', package = None

    def import_module(name, package=None):
        """Import a module.
    
        The 'package' argument is required when performing a relative import. It
        specifies the package to use as the anchor point from which to resolve the
        relative import to an absolute import.
    
        """
        level = 0
        if name.startswith('.'):
            if not package:
                msg = ("the 'package' argument is required to perform a relative "
                       "import for {!r}")
                raise TypeError(msg.format(name))
            for character in name:
                if character != '.':
                    break
                level += 1
>       return _bootstrap._gcd_import(name[level:], package, level)
E       ModuleNotFoundError: No module named 'notmigrations'

/usr/lib64/python3.7/importlib/__init__.py:127: ModuleNotFoundError
___________________________________________________ ERROR at setup of test_queryset ____________________________________________________

request = <SubRequest '_django_db_marker' for <Function test_queryset>>

    @pytest.fixture(autouse=True)
    def _django_db_marker(request):
        """Implement the django_db marker, internal to pytest-django.
    
        This will dynamically request the ``db``, ``transactional_db`` or
        ``django_db_reset_sequences`` fixtures as required by the django_db marker.
        """
        marker = request.node.get_closest_marker("django_db")
        if marker:
            transaction, reset_sequences = validate_django_db(marker)
            if reset_sequences:
                request.getfixturevalue("django_db_reset_sequences")
            elif transaction:
                request.getfixturevalue("transactional_db")
            else:
>               request.getfixturevalue("db")

.env/lib64/python3.7/site-packages/pytest_django/plugin.py:485: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.env/lib64/python3.7/site-packages/six.py:692: in reraise
    raise value.with_traceback(tb)
.env/lib64/python3.7/site-packages/pytest_django/fixtures.py:108: in django_db_setup
    **setup_databases_args
.env/lib64/python3.7/site-packages/django/test/utils.py:174: in setup_databases
    serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
.env/lib64/python3.7/site-packages/django/db/backends/base/creation.py:72: in create_test_db
    run_syncdb=True,
.env/lib64/python3.7/site-packages/django/core/management/__init__.py:148: in call_command
    return command.execute(*args, **defaults)
.env/lib64/python3.7/site-packages/django/core/management/base.py:364: in execute
    output = self.handle(*args, **options)
.env/lib64/python3.7/site-packages/django/core/management/base.py:83: in wrapped
    res = handle_func(*args, **kwargs)
.env/lib64/python3.7/site-packages/django/core/management/commands/migrate.py:87: in handle
    executor = MigrationExecutor(connection, self.migration_progress_callback)
.env/lib64/python3.7/site-packages/django/db/migrations/executor.py:18: in __init__
    self.loader = MigrationLoader(self.connection)
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:49: in __init__
    self.build_graph()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:206: in build_graph
    self.load_disk()
.env/lib64/python3.7/site-packages/django/db/migrations/loader.py:77: in load_disk
    module = import_module(module_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

name = 'notmigrations', package = None

    def import_module(name, package=None):
        """Import a module.
    
        The 'package' argument is required when performing a relative import. It
        specifies the package to use as the anchor point from which to resolve the
        relative import to an absolute import.
    
        """
        level = 0
        if name.startswith('.'):
            if not package:
                msg = ("the 'package' argument is required to perform a relative "
                       "import for {!r}")
                raise TypeError(msg.format(name))
            for character in name:
                if character != '.':
                    break
                level += 1
>       return _bootstrap._gcd_import(name[level:], package, level)
E       ModuleNotFoundError: No module named 'notmigrations'

/usr/lib64/python3.7/importlib/__init__.py:127: ModuleNotFoundError
=========================================================== warnings summary ===========================================================
tests/test_prettyprinter.py:617
  /root/prettyprinter-0.17.0/tests/test_prettyprinter.py:617: PytestWarning: cannot collect test class 'TestDeferredType' because it has a __init__ constructor
    class TestDeferredType(dict):

tests/test_prettyprinter.py::test_all_python_values
  hypothesis_temporary_module_5de9da6602434bf4ae0da6a27093671ab7806ccc:238: HypothesisDeprecationWarning: Test took 221.30ms to run. In future the default deadline setting will be 200ms, which will make this an error. You can set deadline to an explicit value of e.g. 300 to turn tests slower than this into an error, or you can set it to None to disable this check entirely.

tests/test_prettyprinter.py::test_readable
  hypothesis_temporary_module_c803293e0f4fbeea165653682b3b3f713c4dbd92:276: HypothesisDeprecationWarning: Test took 201.64ms to run. In future the default deadline setting will be 200ms, which will make this an error. You can set deadline to an explicit value of e.g. 300 to turn tests slower than this into an error, or you can set it to None to disable this check entirely.

-- Docs: https://docs.pytest.org/en/latest/warnings.html
====================================== 90 passed, 3 skipped, 3 warnings, 5 error in 47.25 seconds ======================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant