Skip to content

Commit

Permalink
fixing pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Jan 9, 2024
1 parent dc7c5c0 commit 55abb50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/common/staging_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class StagingTestExecutor(str, Enum):
"""
# consumer tests
consumer = 'consumer'
CONSUMER = 'consumer'

# provider tests
provider = 'provider'
PROVIDER = 'provider'
2 changes: 1 addition & 1 deletion src/staging/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def create_test_files(self, run_dir: str, run_data: json) -> int:

# write out the data
with open(out_file_name, 'w', encoding='utf-8') as fp:
self.logger.debug(f'Writing to {out_file_name}')
self.logger.debug('Writing to %s', out_file_name)

# write out the preamble
fp.write('#/bin/bash\ncd /var/lib/irods;\n')
Expand Down
6 changes: 3 additions & 3 deletions src/tests/test_staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def test_file_creation():

# create a test list
run_data: dict = {'request_data': {"workflow-type": "CORE", "os-image": "ubuntu-20.04:latest", "test-image": "busybox:1.35",
"tests": [{'consumer': ["test_ihelp", "test_ilocate", "test_ils"]},
{'provider': ["test_ihelp", "test_ilocate", "test_ils"]}]}}
"tests": [{'CONSUMER': ["test_ihelp", "test_ilocate", "test_ils"]},
{'PROVIDER': ["test_ihelp", "test_ilocate", "test_ils"]}]}}

# make the call
ret_val = staging.create_test_files(os.path.dirname(__file__), run_data)
Expand All @@ -100,7 +100,7 @@ def test_file_creation():
os.unlink(os.path.join(os.path.dirname(__file__), 'provider_test_list.json'))

run_data: dict = {'request_data': {'workflow-type': 'CORE', 'os-image': 'ubuntu-20.04:latest', 'test-image': 'busybox:1.35',
'tests': [{'consumer': ["test_ihelp", "test_ilocate", "test_ils"]}]}}
'tests': [{'CONSUMER': ["test_ihelp", "test_ilocate", "test_ils"]}]}}

# make the call
ret_val = staging.create_test_files(os.path.dirname(__file__), run_data)
Expand Down

0 comments on commit 55abb50

Please sign in to comment.