<filename>tests/test_particle_filter.py
import conftest  # Add root path to sys.path
from Localization.particle_filter import particle_filter as m


def test_1():
    m.show_animation = False
    m.main()

<filename>tests/test_particle_filter.py
import conftest  # Add root path to sys.path
from Localization.particle_filter import particle_filter as m


def test_1():
    m.show_animation = False
    m.main()

# Add root path to sys.path