Skip to content
Snippets Groups Projects
Commit ac5cf025 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'dk-tavern-tests' into 'master'

Set of tests for hivemind using tavern library

See merge request !15
parents 7832473c ef779872
No related branches found
No related tags found
1 merge request!15Set of tests for hivemind using tavern library
Showing
with 51831 additions and 0 deletions
...@@ -2,3 +2,9 @@ ...@@ -2,3 +2,9 @@
*.out.json *.out.json
*__pycache__* *__pycache__*
# filter *.pyc
*.pyc
# filter diff files
*.diff.json
# Usage
To run tavern test:
1. Enter `tavern` directory
2. Edit `common.yaml` and set variables to desired values
3. Install tavern/pytest `pip install tavern[pytest]`
4. Run tests: `PYTHONPATH=$PYTHONPATH:$(pwd) py.test -v`
or with compact logging: `PYTHONPATH=$PYTHONPATH:/home/dariusz-work/Sources/tests_api/hivemind/tavern/ py.test -v -tavern-beta-new-traceback -p no:logging`
Each test is marked, we have three mark defined:
1. failing: Mark failing tests
2. patterntest: Mark tests using patterns to compare results
3. smoketest: Mark smoke tests
To run marked tests use following commands:
1. This will run test not marked as `failing`
`PYTHONPATH=$PYTHONPATH:/home/dariusz-work/Sources/tests_api/hivemind/tavern/ py.test test_condenser_api_patterns.tavern.yaml -v --tavern-beta-new-traceback -p no:logging -m "not failing"`
2. This will run only `failing` tests
`PYTHONPATH=$PYTHONPATH:/home/dariusz-work/Sources/tests_api/hivemind/tavern/ py.test test_condenser_api_patterns.tavern.yaml -v --tavern-beta-new-traceback -p no:logging -m "failing"`
[]
\ No newline at end of file
This diff is collapsed.
null
\ No newline at end of file
null
\ No newline at end of file
This diff is collapsed.
{
"blogs": 0.0,
"items": [],
"total": 0.0
}
\ No newline at end of file
This diff is collapsed.
{"author":"steemit","permlink":"firstpost","category":"meta","depth":0}
\ No newline at end of file
{
"active": "1970-01-01T00:00:00",
"blacklists": [],
"created": "2016-03-24T17:00:21",
"id": 30,
"metadata": {
"profile": {
"about": null,
"cover_image": "",
"location": null,
"name": null,
"profile_image": "",
"website": null
}
},
"name": "steemit",
"post_count": 0,
"reputation": 25.0,
"stats": {
"followers": 175,
"following": 0,
"rank": 0,
"sp": 0
}
}
\ No newline at end of file
This diff is collapsed.
[
[
"photography",
"#photography"
],
[
"travel",
"#travel"
],
[
"gaming",
"#gaming"
],
[
"crypto",
"#crypto"
],
[
"newsteem",
"#newsteem"
],
[
"music",
"#music"
],
[
"food",
"#food"
]
]
\ No newline at end of file
[]
\ No newline at end of file
[
{
"about": "To highlight true Gems of Hive community with User Retention as primary objective.",
"admins": [
"bluemist"
],
"avatar_url": "",
"context": {},
"created_at": "2020-02-26 11:33:33",
"id": 1369030,
"is_nsfw": false,
"lang": "en",
"name": "hive-148441",
"num_authors": 1706,
"num_pending": 11787,
"subscribers": 5513,
"sum_pending": 13549,
"title": "GEMS",
"type_id": 1
}
]
\ No newline at end of file
[]
\ No newline at end of file
null
\ No newline at end of file
[]
\ No newline at end of file
null
\ No newline at end of file
[]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment