24 """WebhookjobApi unit test stubs"""
25
26 def setUp(self):
27 self.api = api.webhookjob_api.WebhookjobApi() # noqa: E50128
29 def tearDown(self):
30 pass
24 """WebhookApi unit test stubs"""
25
26 def setUp(self):
27 self.api = api.webhook_api.WebhookApi() # noqa: E50128
29 def tearDown(self):
30 pass
24 """UsergroupApi unit test stubs"""
25
26 def setUp(self):
27 self.api = api.usergroup_api.UsergroupApi() # noqa: E50128
29 def tearDown(self):
30 pass
24 """UserApi unit test stubs"""
25
26 def setUp(self):
27 self.api = api.user_api.UserApi() # noqa: E501 28
29 def tearDown(self):
30 pass
24 """SysteminfoApi unit test stubs"""
25
26 def setUp(self):
27 self.api = api.systeminfo_api.SysteminfoApi() # noqa: E50128
29 def tearDown(self):
30 pass
The variable name is not defined where it is used. This will lead to an error during the runtime. Make sure there is no typo. If the name was supposed to be imported, verify that you've actually imported the name.
import os.path
if os.path.exits('setup.cfg'): # misspelled `exists`
print('Found config file')
import os.path
if os.path.exists('setup.cfg'):
print('Found config file')