Closed wdunn001 closed 2 years ago
currently the following test is failing
_ test_build_categories ___ betamax_session = <requests.sessions.Session object at 0x7f85d311a820> @pytest.mark.usefixtures('betamax_session') def test_build_categories(betamax_session): spider: Spider = CanadaImmigrationServicesSpider() url = spider.start_urls[0] response = get_betamax_response(betamax_session, url) for point in parse_response(response): relevant_categories, other_categories = build_categories(point) for cat in relevant_categories:
assert cat in list(CATEGORIES.values()) E AssertionError: assert 'Any Help' in ['Accommodation', 'Social help', 'Children', 'Any help', 'Any help'] E + where ['Accommodation', 'Social help', 'Children', 'Any help', 'Any help'] = list(dict_values(['Accommodation', 'Social help', 'Children', 'Any help', 'Any help'])) E + where dict_values(['Accommodation', 'Social help', 'Children', 'Any help', 'Any help']) = <built-in method values of dict object at 0x7f85cee964c0>() E + where <built-in method values of dict object at 0x7f85cee964c0> = {'general': 'Any help', 'help_gar': 'Accommodation', 'lgbtq2': 'Social help', 'other': 'Any help', ...}.values tests/spiders/test_canada_immigration_services.py:43: AssertionError =========================== short test summary info ============================ FAILED tests/spiders/test_canada_immigration_services.py::test_build_categories ========================= 1 failed, 62 passed in 2.51s =========================
assert cat in list(CATEGORIES.values())
E AssertionError: assert 'Any Help' in ['Accommodation', 'Social help', 'Children', 'Any help', 'Any help'] E + where ['Accommodation', 'Social help', 'Children', 'Any help', 'Any help'] = list(dict_values(['Accommodation', 'Social help', 'Children', 'Any help', 'Any help'])) E + where dict_values(['Accommodation', 'Social help', 'Children', 'Any help', 'Any help']) = <built-in method values of dict object at 0x7f85cee964c0>() E + where <built-in method values of dict object at 0x7f85cee964c0> = {'general': 'Any help', 'help_gar': 'Accommodation', 'lgbtq2': 'Social help', 'other': 'Any help', ...}.values tests/spiders/test_canada_immigration_services.py:43: AssertionError =========================== short test summary info ============================ FAILED tests/spiders/test_canada_immigration_services.py::test_build_categories ========================= 1 failed, 62 passed in 2.51s =========================
currently the following test is failing
_ test_build_categories ___ betamax_session = <requests.sessions.Session object at 0x7f85d311a820> @pytest.mark.usefixtures('betamax_session') def test_build_categories(betamax_session): spider: Spider = CanadaImmigrationServicesSpider() url = spider.start_urls[0] response = get_betamax_response(betamax_session, url) for point in parse_response(response): relevant_categories, other_categories = build_categories(point) for cat in relevant_categories: