Skip to content

Commit

Permalink
Merge pull request #3 from hypothesis/fix-duplicate-main.py
Browse files Browse the repository at this point in the history
Fix duplicate `main.py` file
  • Loading branch information
seanh authored Jul 11, 2022
2 parents 99a198f + 4dd63a1 commit 1d9794a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
13 changes: 0 additions & 13 deletions src/main.py

This file was deleted.

6 changes: 6 additions & 0 deletions src/tox_faster/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from os import environ

import pluggy

hookimpl = pluggy.HookimplMarker("tox")


@hookimpl
def tox_runenvreport(venv, action): # pylint:disable=unused-argument
# pragma: no cover
if "CI" in environ:
return None

return []
10 changes: 2 additions & 8 deletions tests/unit/tox_faster/main_test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
from unittest.mock import sentinel

from tox_faster.main import tox_runenvreport


class TestToxRunEnvReport:
def test_it_disables_the_env_report(self):
# pylint:disable=use-implicit-booleaness-not-comparison
assert tox_runenvreport(sentinel.venv, sentinel.action) == []
def test_it(self):
assert True

0 comments on commit 1d9794a

Please sign in to comment.