Skip to content

Files

This branch is 1 commit ahead of, 2 commits behind 47-studio-org/openlibrary:master.

integration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 1, 2017
Dec 9, 2017
Nov 14, 2021
Nov 11, 2021
Nov 11, 2021
Nov 11, 2021
Nov 11, 2021
Nov 11, 2021
Nov 11, 2021
Nov 11, 2021

Integration tests

Browser-based integration tests via splinter

These tests are independent of the Open Library context and can be run in any environment. They hit the actual website under test with real requests. Some tests rely on the presence of certain data being present.

Installation

Tested on Python 2.7.6, 2.7.12, 3.5.4

Google Chrome needs to be installed.

$ port install chromedriver (MacPorts)
 or
$ brew install chromedriver (Homebrew)

$ source activate openlibrary
$ pip install splinter
$ pip install pytest
$ pip install pyyaml

Running tests

Verify correct Open Library host in test files.

  • Default: http://localhost:8080

For now, need to manually add an Edition to a new List just once.

$ cd tests/integration
$ pytest