Skip to content

Commit

Permalink
fix: fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
tikolakin committed Apr 3, 2024
1 parent c0dd692 commit 376c1b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def test_example():
- Fix test duration
- Require more back references from testomatio
- pytest.skip should behave as @pytest.mark.skip
- Refactor test run and make run url available

## Contribution
1. `pip install -e .`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ version_provider = "pep621"
update_changelog_on_bump = true
[project]
name = "pytestomatio"
version = "2.3.2"
version = "2.2.0"

dependencies = [
"requests>=2.29.0",
Expand Down
2 changes: 1 addition & 1 deletion pytestomatio/testItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def repl(match):
else:
string_value = 'Unsupported type'
# TODO: handle "value with space" on testomatio BE https://github.com/testomatio/check-tests/issues/147
return sub("[\.\s]", "_", string_value) # Temporary fix for spaces in parameter values
return sub(r"[\.\s]", "_", string_value) # Temporary fix for spaces in parameter values

test_name = sub(pattern, repl, sync_title)
return test_name
2 changes: 1 addition & 1 deletion pytestomatio/testRunConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def set_env(self, env: str) -> None:
def safe_string_list(self, param: str):
if not param:
return None
return ",".join([sub("\s", "", part) for part in param.split(',')])
return ",".join([sub(r"\s", "", part) for part in param.split(',')])

0 comments on commit 376c1b1

Please sign in to comment.