Skip to content

Commit

Permalink
Fix duplicate main.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Jul 11, 2022
1 parent 99a198f commit 4dd63a1
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 4dd63a1

Please sign in to comment.