Skip to content

Commit

Permalink
test_style improvements
Browse files Browse the repository at this point in the history
page is published before checking contents; style removed from generic style test to check default.
  • Loading branch information
anbeemer committed Jul 19, 2024
1 parent 8d9b4e3 commit d14f5b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/test_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ def page_uses_droplets_via_style_custom():


@pytest.fixture(scope='class')
def page_contents_generic(course):
def page_contents_generic(course, page_uses_droplets_via_style_generic):
page_uses_droplets_via_style_generic.publish(course,overwrite=True)
a = course.get_pages(search_term = 'Test Uses Droplets via Style')[1]
rev = a.show_latest_revision()
yield rev.body

@pytest.fixture(scope='class')
def page_contents_custom(course):
def page_contents_custom(course,page_uses_droplets_via_style_custom):
page_uses_droplets_via_style_custom.publish(course,overwrite=True)
a = course.get_pages(search_term = 'Test Uses Droplets via Style Custom')[0]
rev = a.show_latest_revision()
yield rev.body
Expand Down
1 change: 0 additions & 1 deletion test/uses_droplets_via_style/meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"type": "page",
"name": "Test Uses Droplets via Style",
"style":"_styles/generic",
"modules":["Automatically Added Module"]
}

0 comments on commit d14f5b7

Please sign in to comment.