https://github.com/datadavev/ezid_test_client
Testing ezid from client perspective
https://github.com/datadavev/ezid_test_client
Last synced: about 1 year ago
JSON representation
Testing ezid from client perspective
- Host: GitHub
- URL: https://github.com/datadavev/ezid_test_client
- Owner: datadavev
- Created: 2021-10-20T19:24:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T12:50:43.000Z (over 3 years ago)
- Last Synced: 2025-02-02T09:27:42.823Z (over 1 year ago)
- Language: Python
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README for ezid_pyppeteer
Provides client oriented testing of EZID.
## Installation
Install poetry:
```
pip install poetry
```
Clone this repo:
```
git clone https://github.com/datadavev/ezid_test_client.git
```
Install dependencies (and optionally create virtualenv if not in one)
```
cd ezid_test_client
poetry install
```
Run tests:
```
ssh -L 18880:localhost:18880 ezid-stage
pytest
```
To adjust browser size:
```
pytest \
--executable-path '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' \
--window-size 1200 800
```
Run a specific test, e.g., test anonymouse DOI generation:
```
pytest \
--executable-path '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' \
--window-size 1200 800 \
test_basic.py::test_mint_anonymous_doi
```