Skip to content

Commit

Permalink
Add comments to decorated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
namurphy committed Feb 23, 2024
1 parent 2b1e568 commit c5ad7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plasmapy/utils/data/tests/test_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


@pytest.mark.parametrize(("filename", "expected"), test_files)
@pytest.mark.flaky(reruns=5)
@pytest.mark.flaky(reruns=5) # in case of intermittent connection to World Wide Web™
def test_get_file(filename, expected, tmp_path) -> None:
"""Test the get_file function."""
# Delete file if it already exists, so the test always downloads it
Expand All @@ -39,7 +39,7 @@ def test_get_file(filename, expected, tmp_path) -> None:
downloader.get_file(filename, directory=tmp_path)


@pytest.mark.flaky(reruns=5)
@pytest.mark.flaky(reruns=5) # in case of intermittent connection to World Wide Web™
def test_get_file_NIST_PSTAR_datafile(tmp_path) -> None:
"""Test the get_file function on a NIST PSTAR datafile."""
filename = "NIST_PSTAR_aluminum.txt"
Expand Down

0 comments on commit c5ad7b0

Please sign in to comment.