import unittest
from ast import literal_eval
-from tests.config import tape, TweepyTestCase, username
+from config import tape, TweepyTestCase, username
from tweepy import API, FileCache, MemoryCache
from tweepy.models import Friendship
from tweepy.parsers import Parser
import random
import unittest
-from tests.config import *
+from config import *
from tweepy import API, OAuthHandler
import unittest
-from tests.config import (
+from config import (
access_token, access_token_secret, bearer_token, consumer_key,
consumer_secret, tape, user_id
)
import tweepy
+
class TweepyTestCase(unittest.TestCase):
def setUp(self):
-from tests.config import tape, TweepyTestCase, username
+from config import tape, TweepyTestCase, username
from tweepy import Cursor
import os
import unittest
-from tests.config import create_auth
+from config import create_auth
from tweepy import API
from tweepy.errors import HTTPException
+
testratelimit = 'TEST_RATE_LIMIT' in os.environ
-from tests.config import TweepyTestCase
-
+from config import TweepyTestCase
from tweepy.models import ResultSet
+
class NoIdItem:
pass
+
class IdItem:
def __init__(self, id):
self.id = id
+
ids_fixture = [1, 10, 8, 50, 2, 100, 5]
+
class TweepyResultSetTests(TweepyTestCase):
def setUp(self):
self.results = ResultSet()
def testsinceid(self):
self.assertEqual(self.results.since_id, 100)
-