Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
johng42 committed Apr 11, 2019
1 parent e230870 commit 0744f76
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tabpy-server/server_tests/test_service_info_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,31 +129,31 @@ def setUpClass(cls):

# create state.ini dir and file
cls.state_dir = tempfile.mkdtemp(prefix=prefix)
with open(os.path.join(cls.state_dir, 'state.ini'), 'w+')
as cls.state_file:
with open(os.path.join(cls.state_dir, 'state.ini'), 'w+')\
as cls.state_file:
cls.state_file.write('[Service Info]\n'
'Name = TabPy Serve\n'
'Description = \n'
'Creation Time = 0\n'
'Access-Control-Allow-Origin = \n'
'Access-Control-Allow-Headers = \n'
'Access-Control-Allow-Methods = \n'
'\n'
'[Query Objects Service Versions]\n'
'\n'
'[Query Objects Docstrings]\n'
'\n'
'[Meta]\n'
'Revision Number = 1\n')
'Name = TabPy Serve\n'
'Description = \n'
'Creation Time = 0\n'
'Access-Control-Allow-Origin = \n'
'Access-Control-Allow-Headers = \n'
'Access-Control-Allow-Methods = \n'
'\n'
'[Query Objects Service Versions]\n'
'\n'
'[Query Objects Docstrings]\n'
'\n'
'[Meta]\n'
'Revision Number = 1\n')
cls.state_file.close()

# create config file
cls.config_file = tempfile.NamedTemporaryFile(
prefix=prefix, suffix='.conf', delete=False, mode='w+')
cls.config_file.write(
'[TabPy]\n'
'TABPY_STATE_PATH = {}'.format(
cls.state_dir))
'[TabPy]\n'
'TABPY_STATE_PATH = {}'.format(
cls.state_dir))
cls.config_file.close()

@classmethod
Expand Down

0 comments on commit 0744f76

Please sign in to comment.