openlibhums / imports

A plugin for importing content into Janeway.
GNU Affero General Public License v3.0
1 stars 2 forks source link

Failing views test #81

Open joemull opened 1 year ago

joemull commented 1 year ago

A views test is failing with the default test runner on Python 3.10 (django_nose does not support Django 3 or Python 3.10).

FAIL: test_export_stages (imports.tests.test_views.TestViews)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/joe/.virtualenvs/janeway/lib/python3.10/site-packages/django/test/utils.py", line 387, in inner
    return func(*args, **kwargs)
  File "/home/joe/git/janeway/src/plugins/imports/tests/test_views.py", line 75, in test_export_stages
    self.assertEqual(200, response.status_code)
AssertionError: 200 != 404
joemull commented 7 months ago

Lots of tests are now failing.

This probably means we need to update the tests to use the default test runner, not nose.

Refactoring the fixtures might help as well.