diff --git a/.github/workflows/coding_lib_tests.yml b/.github/workflows/coding_lib_tests.yml index cb47239..cd24c4e 100644 --- a/.github/workflows/coding_lib_tests.yml +++ b/.github/workflows/coding_lib_tests.yml @@ -30,7 +30,6 @@ jobs: - name: Install dependencies run: | - sudo apt install xvfb sudo apt install build-essential libdbus-glib-1-dev libgirepository1.0-dev python -m pip install --upgrade pip pip install pytest pytest-cov xvfbwrapper @@ -38,4 +37,4 @@ jobs: - name: Test with pytest run: | - xvfb-run pytest -rA -vv -W ignore::DeprecationWarning --cov=jefapato --cov-report term-missing + pytest -rA -vv -W ignore::DeprecationWarning --cov=jefapato --cov-report term-missing tests/test_blinking.py tests/test_earfeature.py diff --git a/tests/test_analyzer.py b/tests/test_analyzer.py index 911a798..0c9bb90 100644 --- a/tests/test_analyzer.py +++ b/tests/test_analyzer.py @@ -8,10 +8,6 @@ from jefapato import facial_features -from xvfbwrapper import Xvfb # for headless rendering -vdisplay = Xvfb(width=512, height=512) -vdisplay.start() - def get_test_video_path() -> Path: return Path(__file__).parent / "files/test_10sec.mp4" diff --git a/tests/test_blinking.py b/tests/test_blinking.py index b2c5ee2..2265898 100644 --- a/tests/test_blinking.py +++ b/tests/test_blinking.py @@ -7,10 +7,6 @@ from jefapato import blinking -from xvfbwrapper import Xvfb # for headless rendering -vdisplay = Xvfb(width=512, height=512) -vdisplay.start() - def get_file_short(): return Path(__file__).parent / "files" / "blinking" / "blinking_short.csv" diff --git a/tests/test_earfeature.py b/tests/test_earfeature.py index ba4b81c..b31e519 100644 --- a/tests/test_earfeature.py +++ b/tests/test_earfeature.py @@ -6,10 +6,6 @@ from jefapato.facial_features import features -from xvfbwrapper import Xvfb # for headless rendering -vdisplay = Xvfb(width=512, height=512) -vdisplay.start() - def test_ear_score_inputs(): # Test case 1: Invalid input types input_data = [1, 2, 3, 4, 5] diff --git a/tests/test_extractor.py b/tests/test_extractor.py index 69ab483..6e18412 100644 --- a/tests/test_extractor.py +++ b/tests/test_extractor.py @@ -7,10 +7,6 @@ from jefapato.facial_features import mediapipe_landmark_extractor from jefapato.facial_features import video_data_loader -from xvfbwrapper import Xvfb # for headless rendering -vdisplay = Xvfb(width=512, height=512) -vdisplay.start() - class ExtractorHook: def __init__(self) -> None: self.triggered_handle_update = False