Skip to content

Instantly share code, notes, and snippets.

@Sh4kE
Created December 5, 2016 10:27
Show Gist options
  • Save Sh4kE/f9dbb61491e6d5afdd391616b9463cc4 to your computer and use it in GitHub Desktop.
Save Sh4kE/f9dbb61491e6d5afdd391616b9463cc4 to your computer and use it in GitHub Desktop.
(env_ofm) [ 11:26 ] [ sh4ke@Beteigeuze:~/repos/ofm_helper(master✗) ]
$ py.test --mccabe -m mccabe --ignore=env_ofm
==================================================================== test session starts =====================================================================
platform linux -- Python 3.5.2, pytest-3.0.4, py-1.4.31, pluggy-0.4.0
Django settings: ofm_helper.settings.dev (from environment variable)
rootdir: /home/sh4ke/repos/ofm_helper, inifile: pytest.ini
plugins: mccabe-0.1, django-3.1.2
collected 257 items
gunicorn_conf.py .
manage.py .
core/__init__.py .
core/admin.py .
core/apps.py .
core/models.py .
core/ofm_urls.py .
core/ofm_views.py F
core/urls.py .
core/views.py F
core/factories/__init__.py .
core/factories/core_factories.py .
core/managers/__init__.py .
core/managers/parser_manager.py .
core/managers/site_manager.py .
core/migrations/0001_initial.py .
core/migrations/0002_auto_20161116_2229.py .
core/migrations/0003_auto_20161119_0927.py .
core/migrations/0004_checklist_checklistitem.py .
core/migrations/0005_auto_20161203_1816.py .
core/migrations/0006_auto_20161203_1953.py .
core/migrations/__init__.py .
core/parsers/__init__.py .
core/parsers/awp_boundaries_parser.py .
core/parsers/base_parser.py .
core/parsers/finances_parser.py .
core/parsers/future_match_row_parser.py .
core/parsers/match_parser.py .
core/parsers/matchday_parser.py .
core/parsers/ofm_helper_version_parser.py .
core/parsers/player_statistics_parser.py .
core/parsers/players_parser.py .
core/parsers/stadium_stand_statistics_parser.py .
core/parsers/stadium_statistics_parser.py .
core/parsers/won_by_default_match_row_parser.py .
core/tests/__init__.py .
core/tests/assets/__init__.py .
core/tests/functional/__init__.py .
core/tests/functional/test_site_manager_login.py .
core/tests/integration/__init__.py .
core/tests/unit/__init__.py .
core/tests/unit/test_core_models.py .
core/tests/unit/test_home_page.py .
core/tests/unit/parser/__init__.py .
core/tests/unit/parser/test_awp_boundaries_parser.py .
core/tests/unit/parser/test_finances_parser.py .
core/tests/unit/parser/test_future_match_row_parser.py .
core/tests/unit/parser/test_match_parser.py .
core/tests/unit/parser/test_matchday_parser.py .
core/tests/unit/parser/test_player_statistics_parser.py .
core/tests/unit/parser/test_players_parser.py .
core/tests/unit/parser/test_stadium_stand_statistics_parser.py .
core/tests/unit/parser/test_stadium_stand_statistics_parser_construction.py .
core/tests/unit/parser/test_stadium_statistics_parser.py .
core/tests/unit/parser/test_won_by_default_match_row_parser.py .
core/tests/unit/views/__init__.py .
core/tests/unit/views/test_checklist_settings_view.py .
core/tests/unit/views/test_login_views.py .
core/tests/unit/views/test_ofm_finances_charts_views.py .
core/tests/unit/views/test_ofm_finances_view.py .
core/tests/unit/views/test_ofm_helper_version_parser.py .
core/tests/unit/views/test_ofm_matches_view.py .
core/tests/unit/views/test_ofm_player_detail_view.py .
core/tests/unit/views/test_ofm_player_statistics_view.py .
core/tests/unit/views/test_ofm_stadium_detail_view.py .
core/tests/unit/views/test_ofm_stadium_stand_statistics_view.py .
core/tests/unit/views/test_ofm_stadium_statistics_view.py .
core/tests/unit/views/test_parser_view.py .
core/tests/unit/views/test_registration_views.py .
core/tests/unit/views/test_settings_view.py .
core/web/__init__.py .
core/web/ofm_page_constants.py .
ofm_helper/__init__.py .
ofm_helper/common_settings.py .
ofm_helper/urls.py .
ofm_helper/wsgi.py .
ofm_helper/settings/__init__.py .
ofm_helper/settings/dev.py .
ofm_helper/settings/docker.py .
ofm_helper/settings/test.py .
ofm_helper/settings/windows.py .
users/__init__.py .
users/admin.py .
users/apps.py .
users/models.py .
users/views.py .
users/factories/__init__.py .
users/factories/users_factories.py .
users/migrations/0001_initial.py .
users/migrations/0002_auto_20160619_1434.py .
users/migrations/0003_auto_20160619_2106.py .
users/migrations/0004_auto_20161201_2109.py .
users/migrations/__init__.py .
users/tests/__init__.py .
users/tests/unit/__init__.py .
users/tests/unit/test_user_models.py .
========================================================================== FAILURES ==========================================================================
________________________________________________________________________ mccabe-check ________________________________________________________________________
/home/sh4ke/repos/ofm_helper/core/ofm_views.py:381: C901 'FinanceIncomeChartView.get' is too complex (14)
/home/sh4ke/repos/ofm_helper/core/ofm_views.py:558: C901 'MatchesAsJsonView._get_match_in_json' is too complex (8)
/home/sh4ke/repos/ofm_helper/core/ofm_views.py:458: C901 'FinanceExpensesChartView.get' is too complex (14)
/home/sh4ke/repos/ofm_helper/core/ofm_views.py:678: C901 'StadiumStatisticsAsJsonView.get' is too complex (9)
/home/sh4ke/repos/ofm_helper/core/ofm_views.py:226: C901 'FinancesAsJsonView._get_finances_diff_in_json' is too complex (22)
________________________________________________________________________ mccabe-check ________________________________________________________________________
/home/sh4ke/repos/ofm_helper/core/views.py:256: C901 'UpdateChecklistItemView.post' is too complex (9)
/home/sh4ke/repos/ofm_helper/core/views.py:21: C901 'register_view' is too complex (8)
==================================================================== 161 tests deselected ====================================================================
==================================================== 2 failed, 94 passed, 161 deselected in 0.49 seconds =====================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment