Skip to content

Commit 5defdfb

Browse files
committed
test: Introduce flake8-per-file-ignores to make test pass
1 parent 01f9bbc commit 5defdfb

File tree

6 files changed

+8
-105
lines changed

6 files changed

+8
-105
lines changed

graphene_mongo/tests/fixtures.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

graphene_mongo/tests/test_mutation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from graphene.relay import Node
44

5-
from .fixtures import fixtures
5+
from .setup import fixtures
66
from .models import (Article, Editor)
77
from .types import (ArticleNode, EditorNode)
88

graphene_mongo/tests/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import graphene
44

5-
from .fixtures import fixtures
5+
from .setup import fixtures
66
from .models import (
77
Editor, Player, Reporter, ProfessorVector
88
)

graphene_mongo/tests/test_relay_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from graphene.relay import Node
66

7-
from .fixtures import fixtures
7+
from .setup import fixtures
88
from .models import Article, Reporter
99
from .types import (ArticleNode,
1010
EditorNode,

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
coveralls==1.2.0
22
flake8==3.5.0
3+
flake8-per-file-ignores==0.6
34
graphene==2.0.1
45
iso8601==0.1.12
56
mongoengine==0.15.0

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ description-file = README.md
44
[flake8]
55
exclude = setup.py,docs/*,examples/*
66
max-line-length = 130
7-
7+
per-file-ignores =
8+
graphene_mongo/tests/test_mutation.py: F401, F811
9+
graphene_mongo/tests/test_query.py: F401, F811
10+
graphene_mongo/tests/test_relay_query.py: F401, F811
811
[coverage:run]
912
omit = */tests/*
1013

0 commit comments

Comments
 (0)