Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Commit

Permalink
Enable pep8 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
booxter committed May 24, 2019
1 parent fa0679a commit ea14916
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .tests import *
from .tests import * # noqa: F401,F403
1 change: 0 additions & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from turses.models import is_DM, Timeline, TimelineList



class StatusTest(unittest.TestCase):
def test_is_DM(self):
# status is NOT a DM
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_map_attributes_to_retweet_with_hashtag(self):
u'text': u'Python'},
],
u'urls': [],
}
}
retweet = create_status(text=text,
entities=entities,
is_retweet=True,
Expand Down Expand Up @@ -133,7 +133,7 @@ def test_map_attributes_mention(self):
],
u'hashtags': [],
u'urls': [],
}
}
tweet = create_status(text=text,
entities=entities,)

Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ def test_is_valid_status_text(self):
def test_is_valid_search_text(self):
pass


if __name__ == '__main__':
unittest.main()
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ commands =
flake8

[flake8]
exclude = .tox,docs,tests
exclude = .tox,docs
ignore = W504,W605,E241

0 comments on commit ea14916

Please sign in to comment.