Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project-name

`Documentation <https://pcdshub.github.io/project-name/>`_

A short description of the project.
print a statement

Requirements
------------
Expand Down
8 changes: 8 additions & 0 deletions project_name/tests/test_federica.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def test_federica(test):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter test in your function here will is something that pytest will complain about.
It's because "test" isn't defined elsewhere.

Take a look at the example PR that shows how to parametrize the input - it's rather neat:
https://github.com/pcdshub/pcds-ci-test-repo-python/pull/6/files#diff-822bb6cd496579f843d5d333f49b1a4b0b78b43311dfb19d73fa37a7d0a2da14R10-R17

It says "use these values for the input parameter value and expect this to be the result". You write the test once and use a bunch of input parameters.

"""
Just a test

"""

assert test == 'Hi'
print("Hi everyone ")