Skip to content

Instantly share code, notes, and snippets.

@hardyoyo
Created December 22, 2020 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hardyoyo/c4527a3daec4af9f82cf1511d6d7e722 to your computer and use it in GitHub Desktop.
Save hardyoyo/c4527a3daec4af9f82cf1511d6d7e722 to your computer and use it in GitHub Desktop.
error running tests with current Janeway master in Lando with PostreSQL as the DB, and latest Lando, latest Docker Desktop
lando manage check
System check identified no issues (15 silenced).
hpotting@CDL-HPOTTING-9m:~/workspace/janeway master *%= |-/ lando manage test
nosetests --verbosity=1
Creating test database for alias 'default'...
Traceback (most recent call last):
File "/var/www/.local/lib/python3.6/site-packages/django/db/backends/utils.py", line 62, in execute
return self.cursor.execute(sql)
psycopg2.errors.UndefinedObject: type "citext" does not exist
LINE 1: ...ne NULL, "is_superuser" boolean NOT NULL, "email" citext NOT...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "src/manage.py", line 16, in <module>
execute_from_command_line(sys.argv)
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/commands/test.py", line 29, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/commands/test.py", line 62, in handle
failures = test_runner.run_tests(test_labels)
File "/var/www/.local/lib/python3.6/site-packages/django_nose/runner.py", line 308, in run_tests
result = self.run_suite(nose_argv)
File "/var/www/.local/lib/python3.6/site-packages/django_nose/runner.py", line 245, in run_suite
addplugins=plugins_to_add)
File "/var/www/.local/lib/python3.6/site-packages/nose/core.py", line 121, in __init__
**extra_args)
File "/usr/local/lib/python3.6/unittest/main.py", line 95, in __init__
self.runTests()
File "/var/www/.local/lib/python3.6/site-packages/nose/core.py", line 207, in runTests
result = self.testRunner.run(self.test)
File "/var/www/.local/lib/python3.6/site-packages/nose/core.py", line 50, in run
wrapper = self.config.plugins.prepareTest(test)
File "/var/www/.local/lib/python3.6/site-packages/nose/plugins/manager.py", line 99, in __call__
return self.call(*arg, **kw)
File "/var/www/.local/lib/python3.6/site-packages/nose/plugins/manager.py", line 167, in simple
result = meth(*arg, **kw)
File "/var/www/.local/lib/python3.6/site-packages/django_nose/plugin.py", line 82, in prepareTest
self.old_names = self.runner.setup_databases()
File "/var/www/.local/lib/python3.6/site-packages/django_nose/runner.py", line 491, in setup_databases
return super(NoseTestSuiteRunner, self).setup_databases()
File "/var/www/.local/lib/python3.6/site-packages/django/test/runner.py", line 546, in setup_databases
self.parallel, **kwargs
File "/var/www/.local/lib/python3.6/site-packages/django/test/utils.py", line 187, in setup_databases
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE', True),
File "/var/www/.local/lib/python3.6/site-packages/django/db/backends/base/creation.py", line 69, in create_test_db
run_syncdb=True,
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
return command.execute(*args, **defaults)
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 173, in handle
self.sync_apps(connection, executor.loader.unmigrated_apps)
File "/var/www/.local/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 307, in sync_apps
editor.create_model(model)
File "/var/www/.local/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 319, in create_model
self.execute(sql, params or None)
File "/var/www/.local/lib/python3.6/site-packages/django/db/backends/base/schema.py", line 136, in execute
cursor.execute(sql, params)
File "/var/www/.local/lib/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/var/www/.local/lib/python3.6/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/var/www/.local/lib/python3.6/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/var/www/.local/lib/python3.6/site-packages/django/db/backends/utils.py", line 62, in execute
return self.cursor.execute(sql)
django.db.utils.ProgrammingError: type "citext" does not exist
LINE 1: ...ne NULL, "is_superuser" boolean NOT NULL, "email" citext NOT...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment