Skip to content

Commit

Permalink
Remove test preventing CI from completing on Windows with `prompt_too…
Browse files Browse the repository at this point in the history
…lkit` `2.*` (#161)
  • Loading branch information
kiancross committed Dec 25, 2021
1 parent 2e884d4 commit bbb69ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']
promttoolkit: [3.*, 2.*]
exclude:
# tests on windows with prompt-toolkit 2.* do not complete
- os: windows-latest
promttoolkit: 2.*

steps:
- name: Checkout git repository 🕝
Expand Down
7 changes: 7 additions & 0 deletions tests/test_question.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import asyncio
import pytest
import platform

from prompt_toolkit.input.defaults import create_pipe_input
from prompt_toolkit.output import DummyOutput
from pytest import fail

from questionary import text
from questionary.utils import is_prompt_toolkit_3
from tests.utils import KeyInputs


Expand Down Expand Up @@ -79,6 +82,10 @@ def test_skipping_of_skipping_of_questions_unsafe():
inp.close()


@pytest.mark.skipif(
not is_prompt_toolkit_3() and platform.system() == "Windows",
reason="requires prompt_toolkit >= 3",
)
def test_async_ask_question():
loop = asyncio.new_event_loop()

Expand Down

0 comments on commit bbb69ae

Please sign in to comment.