Change settings test import from unit test to pytest