Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian committed Apr 3, 2020
1 parent a6dafd9 commit c5e6568
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/base_api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_get_filter_related_owners(self):
self.assertEqual(rv.status_code, 200)
response = json.loads(rv.data.decode("utf-8"))
expected_response = {
"count": 2,
"count": 3,
"result": [
{"text": "gamma user", "value": 2},
{"text": "gamma2 user", "value": 3},
Expand Down
9 changes: 8 additions & 1 deletion tests/dashboards/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ def test_get_dashboard(self):
"css": "",
"dashboard_title": "title",
"json_metadata": "",
"owners": [{"id": 1, "username": "admin"}],
"owners": [
{
"id": 1,
"username": "admin",
"first_name": "admin",
"last_name": "user",
}
],
"position_json": "",
"published": False,
"url": f"/superset/dashboard/slug1/",
Expand Down

0 comments on commit c5e6568

Please sign in to comment.