Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 791 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 791 Bytes

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