Skip to content

Commit

Permalink
test(python_prompt_library): disable deadline for hypothesis in docst…
Browse files Browse the repository at this point in the history
…ring test

- This change disables the execution deadline for the hypothesis testing framework in the `test_docstring` function, ensuring tests do not fail due to timing constraints.
  • Loading branch information
ericmjl committed Mar 18, 2024
1 parent 476d031 commit 189f7c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/prompt_library/test_python_prompt_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def test_ghostwriter(desired_functionality: str, language: str):


@given(code=st.text(), style=st.sampled_from(["sphinx", "numpy", "google"]))
@settings(deadline=None)
def test_docstring(code: str, style: str):
"""Test that the docstring function generates a docstring with the specified style.
Expand Down

0 comments on commit 189f7c7

Please sign in to comment.