Chapter 1: Ticket: Projection

Hello

i keep failing while running the projection test with the following error,
can anyone help, i tried everything.

================================== FAILURES ===================================
________________________ test_basic_country_search_db _________________________

client = <FlaskClient <Flask ‘mflix.factory’>>

@pytest.mark.projection
def test_basic_country_search_db(client):
    countries = ['Kosovo']
    result = get_movies_by_country(countries)
  assert len(result) == 2

E assert 0 == 2
E + where 0 = len()

tests\test_projection.py:15: AssertionError
_____________________ test_basic_country_search_shape_db ______________________

client = <FlaskClient <Flask ‘mflix.factory’>>

@pytest.mark.projection
def test_basic_country_search_shape_db(client):
    countries = ['Russia', 'Japan']
    result = get_movies_by_country(countries)
  assert len(result) == 2420

E assert 0 == 2420
E + where 0 = len()

tests\test_projection.py:22: AssertionError
============================= 41 tests deselected =============================
=================== 2 failed, 41 deselected in 6.42 seconds ===================

1 Like