Skip to content

Commit

Permalink
Add test for /plot/ route by metric_id
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 committed May 13, 2019
1 parent 792983a commit 1e4ca18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ def test_plot_with_data(client, populated_db):
assert b"foo" in rv.data
assert b'<div id="graph"' in rv.data

rv = client.get("/plot/1")
assert rv.status_code == 200
assert b"foo" in rv.data
assert b'<div id="graph"' in rv.data


def test_api_add(client):
data = {"metric": "test", "value": 10}
Expand Down

0 comments on commit 1e4ca18

Please sign in to comment.