-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update horde dependency patches on worker start
- Loading branch information
Showing
4 changed files
with
69 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pathlib import Path | ||
|
||
HORDE_BRIDGE_SCRIPT = Path(__file__).parent.parent / "horde-bridge.cmd" | ||
|
||
|
||
def test_horde_bridge_updating(horde_dependency_versions: list[tuple[str, str]]) -> None: | ||
script_lines = HORDE_BRIDGE_SCRIPT.read_text().split("\n") | ||
|
||
found_line = False | ||
for line in script_lines: | ||
if line.startswith("call runtime python -s -m pip install"): | ||
found_line = True | ||
assert "-U" in line, "No -U flag found in pip install command" | ||
for dep, version in horde_dependency_versions: | ||
assert f"{dep}~={version}" in line, f"Dependency {dep} not found in pip install command" | ||
|
||
assert found_line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters