Skip to content

[BUG] block_network is not working #150

@mihalt

Description

@mihalt

I see that it works just if I use fixture @pytest.mark.block_network on test without @pytest.mark.vcr. I still have opportunity of go to network then. And even if I manually delete the cassette, it appears again. As I understand, it shouldn't be. I've tried to switch off globaly like

conftest.py

@pytest.fixture(scope="session")
def vcr_config():
    return {
        "block_network": True
    }

or pytest.ini

[pytest]
addopts = --block-network

And tests still can pass in the time when they should fail.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions