ImportError: No module named base

后端 未结 3 1663
栀梦
栀梦 2021-01-13 15:33

I\'m trying to implement PageObject pattern for my first Login test. While running it I\'m receiving the following error:

>> py.test -v test_login.py 
         


        
3条回答
  •  有刺的猬
    2021-01-13 15:39

    Your base module is located in the ui module. Hence line:

    from base import BasePage
    

    should be:

    from ui.base import BasePage
    

提交回复
热议问题