Skip to content

Commit

Permalink
TST: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ElDeveloper committed Sep 21, 2020
1 parent 4407965 commit d1a1ea0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/python/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def test_to_dict_with_emperor(self):
if not key.startswith('emperor_'):
self.assertEqual(obs[key], DICT_A[key])

exp = " <div id='emperor-notebook"
exp = "<div id='emperor-in-empire'"
self.assertTrue(obs['emperor_div'].startswith(exp))

exp = "// When running in the Jupyter"
Expand All @@ -324,8 +324,7 @@ def test_to_dict_with_emperor(self):
exp = "}); // END REQUIRE.JS block"
self.assertTrue(obs['emperor_require_logic'].endswith(exp))

exp = '<link id="emperor-css" rel="stylesheet"'
self.assertTrue(obs['emperor_style'].startswith(exp))
self.assertTrue('"#emperor-css"' in obs['emperor_style'])

exp = "vendor/js/jquery-"
self.assertEqual(obs['emperor_base_dependencies'].count(exp), 1)
Expand Down

0 comments on commit d1a1ea0

Please sign in to comment.