Merge branch 'bugfix/11' into dev

ID: 11
Type: bugfix
Title: move testing utils out of utils
Status: in-progres
Priority: high
Created: 2025-06-20
Description: to shorten the namespace and also indicate that testing utilities
             are different from regular utilities
This commit is contained in:
Tiara Rodney 2025-06-21 01:43:07 +02:00
commit b9bea79c60
No known key found for this signature in database
GPG key ID: 5F43FAB4FBE5B5EB
8 changed files with 10 additions and 10 deletions

2
TODO
View file

@ -167,7 +167,7 @@ Description: add fixtures for doing things in relation to the active testing
ID: 11 ID: 11
Type: bugfix Type: bugfix
Title: move testing utils out of utils Title: move testing utils out of utils
Status: in-progres Status: done
Priority: high Priority: high
Created: 2025-06-20 Created: 2025-06-20
Description: to shorten the namespace and also indicate that testing utilities Description: to shorten the namespace and also indicate that testing utilities

View file

@ -4,7 +4,7 @@ import os
import subprocess import subprocess
import sys import sys
from byteb4rb1e.utils.testing.pytest import get_current_test from byteb4rb1e.testing.pytest import get_current_test
def run_in_subprocess_once(): def run_in_subprocess_once():

View file

@ -5,7 +5,7 @@ from typing import Dict, Tuple, Union
import pytest import pytest
from byteb4rb1e.utils.testing.pytest import get_current_test from byteb4rb1e.testing.pytest import get_current_test
@pytest.fixture @pytest.fixture

View file

@ -5,8 +5,8 @@ import pytest
pytestmark = pytest.mark.pytest pytestmark = pytest.mark.pytest
from byteb4rb1e.utils.testing.pytest import get_current_test from byteb4rb1e.testing.pytest import get_current_test
from byteb4rb1e.utils.testing.pytest.decorators import run_in_subprocess_once from byteb4rb1e.testing.pytest.decorators import run_in_subprocess_once
class Test_get_current_test: class Test_get_current_test:

View file

@ -4,7 +4,7 @@ import pytest
pytestmark = pytest.mark.pytest pytestmark = pytest.mark.pytest
from byteb4rb1e.utils.testing.pytest.decorators import run_in_subprocess_once from byteb4rb1e.testing.pytest.decorators import run_in_subprocess_once
@run_in_subprocess_once() @run_in_subprocess_once()

View file

@ -5,8 +5,8 @@ import pytest
pytestmark = pytest.mark.pytest pytestmark = pytest.mark.pytest
from byteb4rb1e.utils.testing.pytest.decorators import run_in_subprocess_once from byteb4rb1e.testing.pytest.decorators import run_in_subprocess_once
from byteb4rb1e.utils.testing.pytest.fixtures import current_test, mock_pkg from byteb4rb1e.testing.pytest.fixtures import current_test, mock_pkg
def test_current_test(current_test): def test_current_test(current_test):

View file

@ -4,8 +4,8 @@ import urllib.request
import pytest import pytest
from byteb4rb1e.utils.testing.pytest.decorators import run_in_subprocess_once from byteb4rb1e.testing.pytest.decorators import run_in_subprocess_once
from byteb4rb1e.utils.testing.pytest.fixtures import mock_pkg from byteb4rb1e.testing.pytest.fixtures import mock_pkg
from byteb4rb1e.utils.urllib.request import PkgHandler from byteb4rb1e.utils.urllib.request import PkgHandler