class documentation
class TestCredentials: (source)
Tests that Twitter credentials from a file are handled correctly.
Class Method | setup |
Undocumented |
Method | test |
Test that a proper file succeeds and is read correctly |
Method | test |
Test that environment variable has been read correctly. |
Method | test |
Various scenarios that should raise errors |
Instance Variable | subdir |
Undocumented |
@pytest.mark.parametrize( 'kwargs', [ { 'subdir': ''}, { 'subdir': None}, { 'subdir': '/nosuchdir'}, {}, { 'creds_file': 'foobar'}, { 'creds_file': 'bad_oauth1-1.txt'}, { 'creds_file': 'bad_oauth1-2.txt'}, { 'creds_file': 'bad_oauth1-3.txt'}])
def test_scenarios_that_should_raise_errors(self, kwargs, auth): (source) ¶
def test_scenarios_that_should_raise_errors(self, kwargs, auth): (source) ¶
Various scenarios that should raise errors