Skip to content

Commit fdacbe7

Browse files
committed
[tests] Disable Selenium tests on 1.1 branch
Selenium tests were improved in 56f9955 to make them more resilient. However, that commit depends on recent changes in openwisp-utils and cannot be backported to the 1.1 branch. To avoid duplicating work, Selenium tests will not be executed on the 1.1 branch.
1 parent b10b61d commit fdacbe7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

openwisp_firmware_upgrader/tests/test_selenium.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import swapper
44
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
55
from django.core.management import call_command
6+
from django.test import tag
67
from django.urls.base import reverse
78
from reversion.models import Version
89
from selenium.common.exceptions import TimeoutException, UnexpectedAlertPresentException
@@ -25,6 +26,7 @@
2526
BatchUpgradeOperation = load_model('BatchUpgradeOperation')
2627

2728

29+
@tag('selenium_tests')
2830
class TestDeviceAdmin(TestUpgraderMixin, SeleniumTestMixin, StaticLiveServerTestCase):
2931
config_app_label = 'config'
3032
firmware_app_label = 'firmware_upgrader'

runtests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
args = sys.argv
1414
args.insert(1, 'test')
15+
args.extend(['--exclude-tag', 'selenium_tests'])
1516
if not os.environ.get('SAMPLE_APP', False):
1617
args.insert(2, 'openwisp_firmware_upgrader')
1718
else:

0 commit comments

Comments
 (0)