Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 75b2d08

Browse files
committed
Added test for readme example
1 parent 49b2df6 commit 75b2d08

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Project specific
22
tests/*
33
!tests/test_models.py
4+
!tests/test_readme.py
45

56
# Byte-compiled / optimized / DLL files
67
__pycache__/

tests/test_readme.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pytest
2+
3+
import bookstack
4+
5+
6+
@pytest.mark.vcr()
7+
def test_readme_example(fixture_bookstack):
8+
assert 'get_books_export_pdf' in fixture_bookstack.available_api_methods
9+
assert 'Computers' == fixture_bookstack.get_books_list()['data'][0]['name']

0 commit comments

Comments
 (0)