Skip to content

Commit 077face

Browse files
committed
[tests] Avoided duplicated config admin tests + minor cleanup
1 parent 8a7fd75 commit 077face

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

openwisp_controller/connection/tests/test_admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,6 @@ def test_credentials_jsonschema_view(self):
123123
response = self.client.get(url)
124124
ssh_schema = json.dumps(Ssh.schema)
125125
self.assertIn(ssh_schema, response.content.decode('utf8'))
126+
127+
128+
del TestConfigAdmin

runtests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@
1212

1313
args = sys.argv
1414
args.insert(1, 'test')
15+
1516
if not os.environ.get('SAMPLE_APP', False):
1617
args.insert(2, 'openwisp_controller')
1718
else:
1819
args.insert(2, 'openwisp2')
1920
execute_from_command_line(args)
21+
2022
if not os.environ.get('SAMPLE_APP', False):
2123
file_name = 'openwisp_controller/geo/tests'
2224
else:
2325
file_name = 'tests/openwisp2/sample_geo'
26+
2427
return_code = subprocess.call(
2528
'pytest --cov=openwisp_controller --cov-append '
2629
f'-c tests/pytest.ini {file_name}',

0 commit comments

Comments
 (0)