Skip to content

Commit

Permalink
test: Make test_profiles.py run without meson environment
Browse files Browse the repository at this point in the history
  • Loading branch information
igo95862 committed May 25, 2024
1 parent 2fec729 commit eaa2510
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# SPDX-FileCopyrightText: 2020 igo95862
from __future__ import annotations

from os import environ
from pathlib import Path
from tomllib import load as toml_load
from unittest import TestCase
Expand All @@ -11,11 +10,13 @@
from bubblejail.bubblejail_instance import BubblejailProfile


PROJECT_ROOT_PATH = Path(__file__).parent.parent


class TestProfiles(TestCase):
def test_profiles(self) -> None:
meson_source_root = Path(environ['MESON_SOURCE_ROOT'])
profiles_str_path = (
meson_source_root / 'data/usr-share/bubblejail/profiles'
PROJECT_ROOT_PATH / 'data/usr-share/bubblejail/profiles'
)

for profile_path in profiles_str_path.iterdir():
Expand Down

0 comments on commit eaa2510

Please sign in to comment.