diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-02-07 22:35:12 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-02-07 22:35:12 -0500 |
| commit | 5a0ebe1c44afdd4782d33ba075b22c4ebb0281e2 (patch) | |
| tree | c3c9b498048d4f7be94ca37431678ab3a8d2af3a /test_zachwalk.py | |
| parent | 77651ccd131fe7e22c53c284d5fac1d8ea1261a6 (diff) | |
| download | zachwalk-5a0ebe1c44afdd4782d33ba075b22c4ebb0281e2.tar.gz | |
test: test that it only parses link lines
Diffstat (limited to 'test_zachwalk.py')
| -rwxr-xr-x | test_zachwalk.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test_zachwalk.py b/test_zachwalk.py index 5ed323e..952ad65 100755 --- a/test_zachwalk.py +++ b/test_zachwalk.py @@ -1,8 +1,11 @@ #!/usr/bin/env python3 import zachwalk +from dateutil.parser import parse def main(): assert zachwalk.gnd([b'']) == zachwalk.DEFAULT + assert zachwalk.gnd([b'2021-01-31']) == zachwalk.DEFAULT + assert zachwalk.gnd([b'=> path.gmi 2021-01-31 - my post']) == parse('2021-01-31').date() if __name__ == '__main__': main() |
