Робот с django не работает при настройке с модулем не найден

Я пытаюсь установить фреймворк робота на приложение django. Я тестирую на скелетном приложении. Следуя этим инструкциям https://github.com/kitconcept/robotframework-djangolibrary я получаю ошибку

% robot tests/test.robot
[ ERROR ] Error in file '/Users/user/hci/pipeline/app/tests/test.robot' on line 13: Importing library 'MIDDLEWARE_CLASSES' failed: ModuleNotFoundError: No module named 'MIDDLEWARE_CLASSES'
Traceback (most recent call last):
  None
PYTHONPATH:
  /Users/user/.pyenv/versions/3.7.2/bin
  /Users/user/.pyenv/versions/3.7.2/lib/python37.zip
  /Users/user/.pyenv/versions/3.7.2/lib/python3.7
  /Users/user/.pyenv/versions/3.7.2/lib/python3.7/lib-dynload
  /Users/user/.pyenv/versions/3.7.2/lib/python3.7/site-packages
==============================================================================
Test :: Django Robot Tests
==============================================================================
Scenario: As a visitor I can visit the django default page            | FAIL |
Parent suite setup failed:
No keyword with name 'Start Django' found.
------------------------------------------------------------------------------
Test :: Django Robot Tests                                            | FAIL |
Suite setup failed:
No keyword with name 'Start Django' found.

Also suite teardown failed:
No keyword with name 'Stop Django' found.

1 test, 0 passed, 1 failed
==============================================================================
Output:  /Users/user/hci/pipeline/app/output.xml
Log:     /Users/user/hci/pipeline/app/log.html
Report:  /Users/user/hci/pipeline/app/report.html

Это содержимое моих файлов

В settings.py у меня есть

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'DjangoLibrary.middleware.AutologinAuthenticationMiddleware',
    'DjangoLibrary.middleware.FactoryBoyMiddleware',
    'DjangoLibrary.middleware.QuerySetMiddleware',
]

MIDDLEWARE_CLASSES = (
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'DjangoLibrary.middleware.AutologinAuthenticationMiddleware',
    'DjangoLibrary.middleware.FactoryBoyMiddleware',
    'DjangoLibrary.middleware.QuerySetMiddleware',
)

В test.robot у меня есть

*** Variables ***

${HOSTNAME}             127.0.0.1
${PORT}                 55001
${SERVER}               http://${HOSTNAME}:${PORT}/
${BROWSER}              firefox


*** Settings ***

Documentation   Django Robot Tests
Library         Selenium2Library  timeout=10  implicit_wait=0
Library         MIDDLEWARE_CLASSES  ${HOSTNAME}  ${PORT}  path=pipeline/pipeline  manage=pipeline/manage.py  settings=pipeline.settings
Suite Setup     Start Django and open Browser
Suite Teardown  Stop Django and close Browser


*** Keywords ***

Start Django and open Browser
  Start Django
  Open Browser  ${SERVER}  ${BROWSER}

Stop Django and close browser
  Close Browser
  Stop Django


*** Test Cases ***

Scenario: As a visitor I can visit the django default page
  Go To  ${SERVER}
  Wait until page contains element  id=explanation
  Page Should Contain  It worked!
  Page Should Contain  Congratulations on your first Django-powered page.

Я использую python3.7.2

Вернуться на верх