ModuleNotFoundError: No module named 'mflix'

File test_db_connection.py tries to import from mflix.db, but I’m getting this error:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-94454cac77da> in <module>
      5 otherwise the database variable won't be configured correctly
      6 """
----> 7 from mflix.db import get_movies, get_movie
      8 import pytest
      9 from pymongo import MongoClient

ModuleNotFoundError: No module named 'mflix'

Where does this module mflix and/or file mflix.db reside?

you need to import pymongo first to make the queries from that db
unless you specify and instantiate you cannot call your db