forked from username/flaskpaste
bump version to 1.1.0, centralize VERSION constant
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
import json
|
||||
|
||||
from app.config import VERSION
|
||||
|
||||
|
||||
class TestIndex:
|
||||
"""Tests for GET / endpoint."""
|
||||
@@ -12,7 +14,7 @@ class TestIndex:
|
||||
assert response.status_code == 200
|
||||
data = json.loads(response.data)
|
||||
assert data["name"] == "FlaskPaste"
|
||||
assert data["version"] == "1.0.0"
|
||||
assert data["version"] == VERSION
|
||||
assert "endpoints" in data
|
||||
assert "usage" in data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user