Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • hive/tests_api
1 result
Select Git revision
Show changes
Commits on Source (15)
Showing
with 51831 additions and 0 deletions
......@@ -2,3 +2,9 @@
*.out.json
*__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
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
[
[
"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