Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aparcar committed Feb 20, 2024
1 parent 9432b6d commit 3bafe17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
- name: Lint with ruff
run: |
poetry run ruff lint asu/ tests/
poetry run ruff check .
- name: Stylecheck with ruff
run: |
poetry ruff format --check asu/ tests/
poetry run ruff format --check .
- name: Test with pytest
run: |
Expand Down
3 changes: 3 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
get_container_version_tag,
get_file_hash,
get_packages_hash,
get_request_hash,
get_str_hash,
run_container,
verify_usign,
Expand Down Expand Up @@ -43,6 +44,8 @@ def test_get_request_hash():
"package_hash": get_packages_hash(["test"]),
}

assert get_request_hash(request) == "c4eb8bfd4bbd07d7cd2adf70d7ea02e4"


def test_diff_packages():
assert diff_packages({"test1"}, {"test1", "test2"}) == ["-test2", "test1"]
Expand Down

0 comments on commit 3bafe17

Please sign in to comment.