Skip to content

Commit

Permalink
Start testing with the internal bug tracker disabled. Refs #1370
Browse files Browse the repository at this point in the history
- all tests should be passign with and without this App
- specific tcms.bugs related tests should be skipped when the
  App is not found in INSTALLED_APPS
  • Loading branch information
atodorov committed Apr 30, 2020
1 parent 74b42be commit 2054ae1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -49,6 +49,11 @@ jobs:
- CMD=test
- TEST_DB=SQLite

- env:
- CMD=test
- TEST_DB=SQLite
- DISABLE_INTERNAL_BUGTRACKER=yes

- env:
- CMD=test
- TEST_DB=MariaDB
Expand Down
4 changes: 4 additions & 0 deletions tcms/settings/test/__init__.py
Expand Up @@ -32,3 +32,7 @@
# for running localized tests, see f74c3c1
# See https://code.djangoproject.com/ticket/29713
LANGUAGE_CODE = os.environ.get('LANG', 'en-us').lower().replace('_', '-').split('.')[0]

# for running tests with and without the internal bug-tracker
if os.environ.get('DISABLE_INTERNAL_BUGTRACKER'):
INSTALLED_APPS.remove('tcms.bugs.apps.AppConfig') # noqa: F405

0 comments on commit 2054ae1

Please sign in to comment.