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:
commit
b9bea79c60
8 changed files with 10 additions and 10 deletions
2
TODO
2
TODO
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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():
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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:
|
||||||
|
|
@ -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()
|
||||||
|
|
@ -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):
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue