chore: move testing utils out of utils
This commit is contained in:
parent
55ec6323bb
commit
9abfabde00
7 changed files with 9 additions and 9 deletions
|
|
@ -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