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 passing 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 May 1, 2020
1 parent 0b45e89 commit 96df28c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
- CMD=test
- TEST_DB=SQLite

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

- env:
- CMD=test
- TEST_DB=MariaDB
Expand Down
11 changes: 7 additions & 4 deletions tcms/settings/common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

import os.path
import os
from importlib import import_module

import pkg_resources
Expand Down Expand Up @@ -261,16 +261,19 @@
'modernrpc',
'simple_history',

# if you wish to disable Kiwi TCMS bug tracker
# comment out the next line
'tcms.bugs.apps.AppConfig',
'tcms.core.contrib.linkreference',
'tcms.management',
'tcms.testcases.apps.AppConfig',
'tcms.testplans.apps.AppConfig',
'tcms.testruns.apps.AppConfig',
]

# if you wish to disable Kiwi TCMS bug tracker
# define the KIWI_DISABLE_BUGTRACKER ENV variable
if os.environ.get('KIWI_DISABLE_BUGTRACKER') is None:
TENANT_APPS.append('tcms.bugs.apps.AppConfig')


INSTALLED_APPS = TENANT_APPS + [
'grappelli',
'django.contrib.admin',
Expand Down

0 comments on commit 96df28c

Please sign in to comment.