Skip to content

Commit

Permalink
update tests natcap#1308
Browse files Browse the repository at this point in the history
  • Loading branch information
emlys committed Oct 16, 2023
1 parent fb8b4e4 commit 9cd6a4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/test_datastack.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ def test_get_datastack_info_archive(self):
datastack.build_datastack_archive(
params, 'test_datastack_modules.simple_parameters', archive_path)

stack_type, stack_info = datastack.get_datastack_info(archive_path)
stack_type, stack_info = datastack.get_datastack_info(
archive_path, extract_path=self.workspace)

self.assertEqual(stack_type, 'archive')
self.assertEqual(stack_info, datastack.ParameterSet(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ui_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_post_datastack_file(self):
with open(filepath, 'w') as file:
file.write(json.dumps(expected_datastack))
response = test_client.post(
f'{ROUTE_PREFIX}/post_datastack_file', json=filepath)
f'{ROUTE_PREFIX}/post_datastack_file', json={'filepath': filepath})
response_data = json.loads(response.get_data(as_text=True))
self.assertEqual(
set(response_data),
Expand Down
2 changes: 1 addition & 1 deletion workbench/src/renderer/components/SetupTab/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class SetupTab extends React.Component {
const { pyModuleName, switchTabs, t } = this.props;
let datastack;
try {
if (filepath.endsWith('tgz')) {
if (filepath.endsWith('gz')) {
const extractLocation = await ipcRenderer.invoke(
ipcMainChannels.SHOW_OPEN_DIALOG,
{
Expand Down

0 comments on commit 9cd6a4c

Please sign in to comment.