ashcrow / flask-track-usage

Basic metrics tracking for the Flask framework.
Other
53 stars 33 forks source link

Fix storage may fail #53

Closed goodtiding5 closed 2 years ago

goodtiding5 commented 5 years ago

SQL storage may fail, and it will sometimes. However, it should not stop the web function.

ashcrow commented 5 years ago

I see one failure, though I'm not convinced it's due to this PR:

======================================================================
FAIL: test_storage__get_raw (test.test_storage_sqlalchemy.TestPostgresStorage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/ashcrow/flask-track-usage/test/test_storage_sqlalchemy.py", line 141, in test_storage__get_raw
    assert result[1] == u'http://localhost/blueprint'
AssertionError: 
-------------------- >> begin captured stdout << ---------------------
(1, 'http://localhost/', None, None, None, None, None, '{}', 200, '127.0.0.1', None, False, None, '/', 0.00012, datetime.datetime(2019, 7, 18, 20, 3, 38), None, '{}')
ashcrow commented 5 years ago

Looks like #52 snuck into this