okfn-brasil / vitimas-da-intolerancia

Conheça as vítimas de ódio político
https://vitimasdaintolerancia.org/
GNU Lesser General Public License v3.0
101 stars 10 forks source link

Errors running test suite #3

Closed fernandes closed 6 years ago

fernandes commented 6 years ago

Errors that happened when running pytest

○ pytest
===================================================================== test session starts ======================================================================
platform darwin -- Python 3.7.0, pytest-3.8.2, py-1.6.0, pluggy-0.7.1
rootdir: /Users/fernandes/src/upstream/violencia-nao-tem-partido, inifile: pytest.ini
plugins: sanic-0.1.13, mock-1.10.0, cov-2.6.0
collected 0 items / 2 errors                                                                                                                                   

============================================================================ ERRORS ============================================================================
_________________________________________________________ ERROR collecting violence/tests/test_data.py _________________________________________________________
../../../.pyenv/versions/3.7.0/lib/python3.7/site-packages/py/_path/local.py:668: in pyimport
    __import__(modname)
violence/__init__.py:9: in <module>
    app_data = Data(refresh_cache=True)
violence/data.py:45: in __init__
    self.reload_from_google_spreadsheet()
violence/data.py:109: in reload_from_google_spreadsheet
    reverse=True
violence/data.py:65: in serialize_cases
    for case in import_from_csv(buffer):
../../../.pyenv/versions/3.7.0/lib/python3.7/site-packages/rows/plugins/plugin_csv.py:71: in import_from_csv
    return create_table(reader, meta=meta, *args, **kwargs)
../../../.pyenv/versions/3.7.0/lib/python3.7/site-packages/rows/plugins/utils.py:144: in create_table
    fields = detect_types(header, sample_rows, *args, **kwargs)
../../../.pyenv/versions/3.7.0/lib/python3.7/site-packages/rows/fields.py:494: in detect_types
    raise ValueError('Number of fields differ')
E   ValueError: Number of fields differ
_________________________________________________________ ERROR collecting violence/tests/test_home.py _________________________________________________________
../../../.pyenv/versions/3.7.0/lib/python3.7/site-packages/py/_path/local.py:668: in pyimport
    __import__(modname)
violence/__init__.py:9: in <module>
    app_data = Data(refresh_cache=True)
violence/data.py:45: in __init__
    self.reload_from_google_spreadsheet()
violence/data.py:109: in reload_from_google_spreadsheet
    reverse=True
violence/data.py:65: in serialize_cases
    for case in import_from_csv(buffer):
../../../.pyenv/versions/3.7.0/lib/python3.7/site-packages/rows/plugins/plugin_csv.py:71: in import_from_csv
    return create_table(reader, meta=meta, *args, **kwargs)
../../../.pyenv/versions/3.7.0/lib/python3.7/site-packages/rows/plugins/utils.py:144: in create_table
    fields = detect_types(header, sample_rows, *args, **kwargs)
../../../.pyenv/versions/3.7.0/lib/python3.7/site-packages/rows/fields.py:494: in detect_types
    raise ValueError('Number of fields differ')
E   ValueError: Number of fields differ

---------- coverage: platform darwin, python 3.7.0-final-0 -----------
Name                   Stmts   Miss  Cover
------------------------------------------
violence/__init__.py      10      4    60%
violence/data.py          61     31    49%
violence/models.py        29      8    72%
------------------------------------------
TOTAL                    100     43    57%

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================================== 2 error in 1.20 seconds ====================================================================

any suggestion?! 😉

fernandes commented 6 years ago

worked 😉 👍