Skip to content

Commit aab04df

Browse files
committed
Clear the filter for test.
1 parent eab2b1e commit aab04df

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

tasks.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,15 @@ def black(c):
206206
c.run("python -m black .")
207207

208208

209-
@task(pre=[test, accept, playwright, black, lint])
209+
@task(pre=[test, accept, playwright])
210+
def fulltest(c): # pylint: disable=unused-argument
211+
"""
212+
Run full tests check.
213+
"""
214+
print("Done.")
215+
216+
217+
@task(pre=[fulltest, black, lint])
210218
def full(c): # pylint: disable=unused-argument
211219
"""
212220
Run full check and lint.
@@ -215,6 +223,7 @@ def full(c): # pylint: disable=unused-argument
215223

216224

217225
ns = Collection()
226+
ns.add_task(fulltest)
218227
ns.add_task(full)
219228
ns.add_task(lint)
220229
ns.add_task(test)

tests/acceptance/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ def given_demo_stories_loaded(luteclient):
195195
luteclient.clear_book_filter()
196196

197197

198+
@given("I clear the book filter")
199+
def given_clear_book_filter(luteclient):
200+
"clear filter."
201+
luteclient.visit("/")
202+
luteclient.clear_book_filter()
203+
204+
198205
@given(parsers.parse("I update the {lang} language:\n{content}"))
199206
def given_update_language(luteclient, lang, content):
200207
"Content is assumed to be yaml."

tests/acceptance/reading.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Feature: User can actually read and stuff.
105105
When I click the "Tutorial" link
106106
And I click the footer next page
107107
Given I visit "/"
108+
And I clear the book filter
108109
And the book table loads "Tutorial"
109110
Then the page contains "Tutorial (2/"
110111

0 commit comments

Comments
 (0)