Couldn't able to pass test cases in Ticket Projection

Ticket: Projection

I have made below changes to get_movies_by_country in db.py.

The movies are getting filtered in the UI based on countries as far as I checked but I couldn’t able to validate the ticket in the status page. In test_projection.py, Russia, Japan & Kosovo is being expected so tried to validate those countries in the UI. The movie titles are displayed based on those countries as expected. I don’t know what’s the issue here!

pytest -m projection:

Both of the above titles can be found in the UI.

run.py:

UI:

Please help.

Thanks

Fix1: limit(1) was for demo purpose.Try to fix it.
Fix2: Try to read TODO above you have see one more change in projected value

1 Like