mirror of
https://github.com/ihabunek/toot
synced 2025-02-02 12:26:51 +01:00
Add __version__ to init file
This commit is contained in:
parent
d3d69509cb
commit
db4e1d59f3
8
tests/test_version.py
Normal file
8
tests/test_version.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import toot
|
||||||
|
from pkg_resources import get_distribution
|
||||||
|
|
||||||
|
|
||||||
|
def test_version():
|
||||||
|
"""Version specified in __version__ should be the same as the one
|
||||||
|
specified in setup.py."""
|
||||||
|
assert toot.__version__ == get_distribution('toot').version
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
|
__version__ = '0.16.2'
|
||||||
|
|
||||||
App = namedtuple('App', ['instance', 'base_url', 'client_id', 'client_secret'])
|
App = namedtuple('App', ['instance', 'base_url', 'client_id', 'client_secret'])
|
||||||
User = namedtuple('User', ['instance', 'username', 'access_token'])
|
User = namedtuple('User', ['instance', 'username', 'access_token'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user