File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
openwisp_controller/connection/tests Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 } ' ,
You can’t perform that action at this time.
0 commit comments