HackRU / lcs

The backend for HackRU's website. Manages the user system.
http://hackru.org
MIT License
6 stars 5 forks source link

More tests #109

Closed foltik closed 4 years ago

foltik commented 4 years ago

Add tests for magic link generation and improve authorization test coverage

foltik commented 4 years ago

@Kironb Build fails with:

tests/test_maglink.py:6: in <module>
    import maglink
maglink.py:6: in <module>
    import use_sparkpost
use_sparkpost.py:8: in <module>
    emails = SparkPost(config.SPARKPOST_KEY)
../../../virtualenv/python3.6.6/lib/python3.6/site-packages/sparkpost/__init__.py:24: in __init__
    raise SparkPostException("No API key. Improve message.")
E   sparkpost.exceptions.SparkPostException: No API key. Improve message.

Is SPARKPOST_KEY set in the Travis env? It doesn't have to actually be the real key since I mocked the API calls.

Kironb commented 4 years ago

I went and set SPARKPOST_KEY in Travis so everything passed.