Skip to content

Commit

Permalink
Fix unit_test
Browse files Browse the repository at this point in the history
  • Loading branch information
suecharo committed Feb 1, 2024
1 parent 951e836 commit 43fd595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/unit_test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from time import sleep
from typing import Dict, Generator

import pkg_resources
import pytest
from flask.testing import FlaskClient
from importlib_metadata import version
from pytest import MonkeyPatch

from sapporo.app import create_app
Expand Down Expand Up @@ -53,7 +53,7 @@ def get_default_config(tmpdir: Path) -> Config:
"port": 8888,
"debug": True,
"run_dir": tmpdir,
"sapporo_version": pkg_resources.get_distribution("sapporo").version,
"sapporo_version": version("sapporo"),
"get_runs": True,
"workflow_attachment": True,
"registered_only_mode": False,
Expand All @@ -62,6 +62,7 @@ def get_default_config(tmpdir: Path) -> Config:
"run_sh": PACKAGE_ROOT.joinpath("sapporo/run.sh").resolve(),
"url_prefix": "",
"access_control_allow_origin": "*",
"auth_config": PACKAGE_ROOT.joinpath("sapporo/auth_config.json").resolve(),
}
return config

Expand Down
1 change: 0 additions & 1 deletion tests/unit_test/test_parse_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def test_parse_cwl_inputs(delete_env_vars: None, test_client: FlaskClient) -> No
content_type="multipart/form-data")
res_data = res.get_json()
assert res_data["inputs"] is not None
assert isinstance(res_data["inputs"], list)
assert res_data["workflow_type"] == "CWL"
assert res_data["workflow_type_version"] == "v1.0"

Expand Down

0 comments on commit 43fd595

Please sign in to comment.