import os
import warnings

import pytest

pytest_plugins = 'pytester'


@pytest.fixture(scope='session', autouse=True)
def verify_target_path():
    import pytest_testdox

    current_path_root = os.path.dirname(
        os.path.dirname(os.path.realpath(__file__))
    )
    if current_path_root not in pytest_testdox.__file__:
        warnings.warn(
            'pytest-testdox was not imported from your repository. '
            'You might be testing the wrong code '
            '-- More: https://github.com/renanivo/pytest-testdox/issues/13',
            UserWarning
        )

import os
import warnings

import pytest

pytest_plugins = 'pytester'


@pytest.fixture(scope='session', autouse=True)
def verify_target_path():
    import pytest_testdox

    current_path_root = os.path.dirname(
        os.path.dirname(os.path.realpath(__file__))
    )
    if current_path_root not in pytest_testdox.__file__:
        warnings.warn(
            'pytest-testdox was not imported from your repository. '
            'You might be testing the wrong code. '
            'Uninstall pytest-testdox to be able to run all test cases '
            '-- More: https://github.com/renanivo/pytest-testdox/issues/13',
            UserWarning
        )

Add the action required to fix the issue to the warning
Add the action required to fix the issue to the warning

  import os
  import warnings
  
  import pytest
  
  pytest_plugins = 'pytester'
  
  
  @pytest.fixture(scope='session', autouse=True)
  def verify_target_path():
      import pytest_testdox
  
      current_path_root = os.path.dirname(
          os.path.dirname(os.path.realpath(__file__))
      )
      if current_path_root not in pytest_testdox.__file__:
          warnings.warn(
              'pytest-testdox was not imported from your repository. '
-             'You might be testing the wrong code '
+             'You might be testing the wrong code. '
+             'Uninstall pytest-testdox to be able to run all test cases '
              '-- More: https://github.com/renanivo/pytest-testdox/issues/13',
              UserWarning
          )
  
Add the action required to fix the issue to the warning
## Code Before:
import os
import warnings

import pytest

pytest_plugins = 'pytester'


@pytest.fixture(scope='session', autouse=True)
def verify_target_path():
    import pytest_testdox

    current_path_root = os.path.dirname(
        os.path.dirname(os.path.realpath(__file__))
    )
    if current_path_root not in pytest_testdox.__file__:
        warnings.warn(
            'pytest-testdox was not imported from your repository. '
            'You might be testing the wrong code '
            '-- More: https://github.com/renanivo/pytest-testdox/issues/13',
            UserWarning
        )

## Instruction:
Add the action required to fix the issue to the warning
## Code After:
import os
import warnings

import pytest

pytest_plugins = 'pytester'


@pytest.fixture(scope='session', autouse=True)
def verify_target_path():
    import pytest_testdox

    current_path_root = os.path.dirname(
        os.path.dirname(os.path.realpath(__file__))
    )
    if current_path_root not in pytest_testdox.__file__:
        warnings.warn(
            'pytest-testdox was not imported from your repository. '
            'You might be testing the wrong code. '
            'Uninstall pytest-testdox to be able to run all test cases '
            '-- More: https://github.com/renanivo/pytest-testdox/issues/13',
            UserWarning
        )
