Skip to content

Commit e373ed1

Browse files
committed
CI fixes
1 parent 57a45cf commit e373ed1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/update_badges.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def main():
2626

2727
print("Running tests and calculating coverage...")
2828
test_result = subprocess.run(
29-
["pytest", "--cov=src/openapi_client", "--cov-report=term"],
29+
["pytest", "tests/", "--cov=src/openapi_client", "--cov-report=term"],
3030
stdout=subprocess.PIPE,
3131
stderr=subprocess.STDOUT,
3232
text=True,
@@ -83,9 +83,6 @@ def main():
8383
with open(readme_path, "w") as f:
8484
f.write(content)
8585

86-
# Attempt to un-format test directory if it was formatted, as pre-commit fights over it
87-
subprocess.run(["ruff", "format", "test/mock_server.py", "test/test_client.py"])
88-
8986

9087
if __name__ == "__main__":
9188
main()

tests/test_cli_extra.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def test_cli_missing_coverage(monkeypatch, tmp_path):
212212
def mock_mkdir(*args, **kwargs): # pragma: no cover
213213
pass
214214

215+
monkeypatch.chdir(tmp_path)
215216
spec = {"openapi": "3.2.0", "info": {"title": "T", "version": "1"}, "paths": {}}
216217
input_file = tmp_path / "dummy.json"
217218
input_file.write_text(json.dumps(spec))

0 commit comments

Comments
 (0)