Skip to content

Commit 8a7fd75

Browse files
committed
[tests] Call super() in tearDownClass methods
Not doing this causes issues: https://docs.djangoproject.com/en/3.1/topics/testing/tools/#django.test.SimpleTestCase.databases
1 parent 5cf1012 commit 8a7fd75

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

install-dev.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
#!/bin/bash
22
set -e
3+
# TODO: can be remove when openwisp-users 0.4.1 is released
4+
# Commit needed for failures in tests:
5+
# https://github.com/openwisp/openwisp-users/commit/ef347927136ddb4676479cb54cdc7cd08049e2e5
6+
pip install -U --no-deps https://github.com/openwisp/openwisp-users/tarball/master

openwisp_controller/config/tests/test_admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,4 +896,5 @@ def test_clone_template(self):
896896

897897
@classmethod
898898
def tearDownClass(cls):
899+
super().tearDownClass()
899900
devnull.close()

openwisp_controller/connection/tests/test_ssh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def setUpClass(cls):
2626

2727
@classmethod
2828
def tearDownClass(cls):
29+
super().tearDownClass()
2930
cls.mock_ssh_server.__exit__()
3031

3132
def test_connection_connect(self):

0 commit comments

Comments
 (0)