Skip to content

Commit

Permalink
Adds ids to tests via pytest.param
Browse files Browse the repository at this point in the history
  • Loading branch information
ns-rse authored and slackline committed Jan 1, 2024
1 parent 79a1786 commit a2faedb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![PyPI version](https://badge.fury.io/py/topofileformats.svg)](https://badge.fury.io/py/topofileformats)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/topofileformats)
[![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json))](https://github.com/astral-sh/ruff)
[![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Code style: flake8](https://img.shields.io/badge/code%20style-flake8-456789.svg)](https://github.com/psf/flake8)
<!-- [![codecov](https://codecov.io/gh/AFM-SPM/topofileformats/branch/dev/graph/badge.svg)]
Expand Down
16 changes: 2 additions & 14 deletions tests/test_asd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,8 @@
@pytest.mark.parametrize(
("file_name", "channel", "number_of_frames", "pixel_to_nm_scaling"),
[
# File type 0
(
"sample_0.asd",
"TP",
142,
0.78125,
),
# File type 1
(
"sample_1.asd",
"TP",
197,
2.0,
),
pytest.param("sample_0.asd", "TP", 142, 0.78125, id="file type 0"),
pytest.param("sample_1.asd", "TP", 197, 2.0, id="file type 1"),
],
)
def test_load_asd(file_name: str, channel: str, number_of_frames: int, pixel_to_nm_scaling: float) -> None:
Expand Down

0 comments on commit a2faedb

Please sign in to comment.