mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
replace behave BDD API tests with pytest-bdd tests
This commit is contained in:
15
test/bdd/features/api/status/simple.feature
Normal file
15
test/bdd/features/api/status/simple.feature
Normal file
@@ -0,0 +1,15 @@
|
||||
Feature: Status queries
|
||||
Testing status query
|
||||
|
||||
Scenario: Status as text
|
||||
When sending v1/status
|
||||
Then a HTTP 200 is returned
|
||||
And the page content equals "OK"
|
||||
|
||||
Scenario: Status as json
|
||||
When sending v1/status with format json
|
||||
Then a HTTP 200 is returned
|
||||
And the result is valid json
|
||||
And the result contains
|
||||
| status!:d | message | data_updated!fm |
|
||||
| 0 | OK | ....-..-..T..:..:...00:00 |
|
||||
Reference in New Issue
Block a user