Skip to content

Commit

Permalink
fix nix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Jul 27, 2024
1 parent 20ac86a commit 55d54a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion nixos/devShell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ let
# only needed for development
autopep8
httpx
pytest
]);
in
pkgs.mkShell {
Expand Down
2 changes: 1 addition & 1 deletion nixos/pkgs/whisper_api/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ python3.pkgs.buildPythonApplication {
];

nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
unittestCheckHook
httpx
];

Expand Down
3 changes: 2 additions & 1 deletion test/test_frontend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest

from fastapi.testclient import TestClient
from whisper_api import app

Expand All @@ -25,7 +26,7 @@ def test_script_js(self):
"""
response = client.get("/script.js")
assert response.status_code == 200
assert response.headers["content-type"] == "text/javascript; charset=utf-8"
assert response.headers["content-type"] in ("text/javascript; charset=utf-8", "application/javascript")

def test_styles_css(self):
"""
Expand Down

0 comments on commit 55d54a2

Please sign in to comment.