"""Module grouping session scoped PyTest fixtures."""

import pytest
from _pytest.monkeypatch import MonkeyPatch

import pydov


def pytest_runtest_setup():
    pydov.hooks = []


@pytest.fixture(scope='module')
def monkeymodule():
    mpatch = MonkeyPatch()
    yield mpatch
    mpatch.undo()

"""Module grouping session scoped PyTest fixtures."""

import pytest
from _pytest.monkeypatch import MonkeyPatch

import pydov


def pytest_runtest_setup():
    pydov.hooks = []

def pytest_configure(config):
    config.addinivalue_line("markers",
                            "online: mark test that requires internet access")

@pytest.fixture(scope='module')
def monkeymodule():
    mpatch = MonkeyPatch()
    yield mpatch
    mpatch.undo()

Add pytest hook to register online marker
Add pytest hook to register online marker

  """Module grouping session scoped PyTest fixtures."""
  
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  
  import pydov
  
  
  def pytest_runtest_setup():
      pydov.hooks = []
  
+ def pytest_configure(config):
+     config.addinivalue_line("markers",
+                             "online: mark test that requires internet access")
  
  @pytest.fixture(scope='module')
  def monkeymodule():
      mpatch = MonkeyPatch()
      yield mpatch
      mpatch.undo()
  
Add pytest hook to register online marker
## Code Before:
"""Module grouping session scoped PyTest fixtures."""

import pytest
from _pytest.monkeypatch import MonkeyPatch

import pydov


def pytest_runtest_setup():
    pydov.hooks = []


@pytest.fixture(scope='module')
def monkeymodule():
    mpatch = MonkeyPatch()
    yield mpatch
    mpatch.undo()

## Instruction:
Add pytest hook to register online marker
## Code After:
"""Module grouping session scoped PyTest fixtures."""

import pytest
from _pytest.monkeypatch import MonkeyPatch

import pydov


def pytest_runtest_setup():
    pydov.hooks = []

def pytest_configure(config):
    config.addinivalue_line("markers",
                            "online: mark test that requires internet access")

@pytest.fixture(scope='module')
def monkeymodule():
    mpatch = MonkeyPatch()
    yield mpatch
    mpatch.undo()
