Skip to content

Commit

Permalink
- F Moved pytest into integrations/pytest
Browse files Browse the repository at this point in the history
Co-Authored-By: Matt Anderson <matthew.anderson11@gmail.com>
Co-Authored-By: Joss Hufnagel <43077216+blade290@users.noreply.github.com>
Co-Authored-By: Susan Fung <38925660+susanfung@users.noreply.github.com>
  • Loading branch information
4 people committed Jul 7, 2024
1 parent 60e019a commit bf18863
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 5 deletions.
Empty file.
1 change: 1 addition & 0 deletions approvaltests/integrations/pytest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Approvaltests.integrations.pytest module."""
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion approvaltests/namer/stack_frame_namer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from approvaltests.namer.namer_base import NamerBase
from approvaltests.approval_exception import FrameNotFound
from approval_utilities.utilities.stack_frame_utilities import get_class_name_for_frame
from approvaltests.pytest.pytest_config import PytestConfig
from approvaltests.integrations.pytest.pytest_config import PytestConfig


class StackFrameNamer(NamerBase):
Expand Down
1 change: 0 additions & 1 deletion approvaltests/pytest/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def do_the_setup(package_name, package_description, required, extra_requires):
package_data={"approvaltests": ["reporters/reporters.json"]},
entry_points={
"pytest11": [
"approvaltests_pytest = approvaltests.pytest.pytest_plugin",
"approvaltests_pytest = approvaltests.integrations.pytest.pytest_plugin",
],
},
install_requires=required,
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

# The next line registers the plugin
from approvaltests.pytest.pytest_plugin import pytest_configure
from approvaltests.integrations.pytest.pytest_plugin import pytest_configure


# begin-snippet: conftest_pytest_session_scoped
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/pytest/test_namer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from approvaltests.approvals import get_default_namer, verify
from approvaltests.pytest.py_test_namer import PyTestNamer
from approvaltests.integrations.pytest.py_test_namer import PyTestNamer


def test_basic_approval():
Expand Down

0 comments on commit bf18863

Please sign in to comment.