Browse Source

Remove some deprecated test fixtures

theenglishway (time) 7 years ago
parent
commit
963bd19103
2 changed files with 0 additions and 37 deletions
  1. 0 30
      tests/output/conftest.py
  2. 0 7
      tests/output/test_print.py

+ 0 - 30
tests/output/conftest.py

@@ -32,33 +32,3 @@ def users_factory(fixtures_factory):
         return [u for u in all_fixtures if isinstance(u, User)]
 
     return _users_factory
-
-@pytest.fixture
-def timeline_mock_factory(tweets_factory, monkeypatch, timeline_attribute):
-    def _timeline_mock_factory(tweets_file):
-        tweets = tweets_factory(tweets_file)
-
-        class MockClientTimeline:
-            def __init__(self, user, limit):
-                pass
-
-            def __iter__(self):
-                return iter(tweets)
-        monkeypatch.setattr(timeline_attribute, MockClientTimeline)
-
-    return _timeline_mock_factory
-
-@pytest.fixture
-def profile_mock_factory(users_factory, monkeypatch, profile_attribute):
-    def _profile_mock_factory(user_file):
-        users = users_factory(user_file)
-
-        # Make a dictionary out of users, indexed by the twitter handle
-
-        class MockClientProfile:
-            def __init__(self, user):
-                if user in users:
-                    self.user = users[user]
-
-        monkeypatch.setattr(profile_attribute,  MockClientProfile)
-    return _profile_mock_factory

+ 0 - 7
tests/output/test_print.py

@@ -1,13 +1,6 @@
 import pytest
 from twhatter.output import Print
 
-@pytest.fixture
-def timeline_attribute():
-    return "twhatter.exploration.node.timeline.ClientTimeline"
-
-@pytest.fixture
-def profile_attribute():
-    return "twhatter.exploration.node.profile.ClientProfile"
 
 @pytest.fixture
 def output():