# -*- coding: utf-8 -*-
import pytest
import tweepy
import vcr

from secrets import TWITTER_ACCESS, TWITTER_SECRET
from secrets import TWITTER_CONSUMER_ACCESS, TWITTER_CONSUMER_SECRET


class TestTweepyIntegration():
    """Test class to ensure tweepy functionality works as expected"""
    # Class level client to use across tests
    auth = tweepy.OAuthHandler(TWITTER_CONSUMER_ACCESS, TWITTER_CONSUMER_SECRET)
    auth.set_access_token(TWITTER_ACCESS, TWITTER_SECRET)

    @vcr.use_cassette('fixtures/vcr_cassettes/twitter.yaml')
    def test_authd(self):
        api = tweepy.API(self.auth)
        assert api.verify_credentials() is not False

if __name__ == '__main__':
    pytest.main()

@@ -42,434 +42,152 @@
 ort 
-tweepy%0Aimport vcr%0A%0Afrom secrets import TWITTER_ACCESS, TWITTER_SECRET%0Afrom secrets import TWITTER_CONSUMER_ACCESS, TWITTER_CONSUMER_SECRET%0A%0A%0Aclass TestTweepyIntegration():%0A    %22%22%22Test class to ensure tweepy functionality works as expected%22%22%22%0A    # Class level client to use across tests%0A    auth = tweepy.OAuthHandler(TWITTER_CONSUMER_ACCESS, TWITTER_CONSUMER_SECRET)%0A    auth.set_access_token(TWITTER_ACCESS, TWITTER_SECRET)%0A
+vcr%0A%0Afrom inet.sources.twitter import api%0A%0A%0Aclass TestTweepyIntegration():%0A    %22%22%22Test class to ensure tweepy functionality works as expected%22%22%22
 %0A   
@@ -274,44 +274,8 @@
 f):%0A
-        api = tweepy.API(self.auth)%0A
     

Change tests to pull in twitter client from package