fix path
This commit is contained in:
parent
99eb79e230
commit
8c746be358
1 changed files with 9 additions and 1 deletions
10
tweets/__init__.py
Normal file → Executable file
10
tweets/__init__.py
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
from datetime import date, datetime
|
from datetime import date, datetime
|
||||||
from typing import Union, List, Dict, Set
|
from typing import Union, List, Dict, Set
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -13,7 +14,7 @@ EXPORTS_PATH = Path('/L/backups/twitter-exports')
|
||||||
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
sys.path.append('/L/Dropbox/coding/twidump')
|
sys.path.append('/L/coding/twidump')
|
||||||
import twidump # type: ignore
|
import twidump # type: ignore
|
||||||
sys.path.pop() # TODO not sure if necessary?
|
sys.path.pop() # TODO not sure if necessary?
|
||||||
|
|
||||||
|
@ -112,6 +113,13 @@ def tweets_on(*dts: Datish) -> List[Tweet]:
|
||||||
|
|
||||||
on = tweets_on
|
on = tweets_on
|
||||||
|
|
||||||
|
def test_on():
|
||||||
|
tww = tweets_on('2019-05-11')
|
||||||
|
assert len(tww) == 2
|
||||||
|
|
||||||
|
def test_all():
|
||||||
|
tall = tweets_all()
|
||||||
|
assert len(tall) > 100
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
for t in tweets_all():
|
for t in tweets_all():
|
||||||
|
|
Loading…
Add table
Reference in a new issue