Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with using pytest #1

Open
anisak000 opened this issue Apr 19, 2017 · 0 comments
Open

Problem with using pytest #1

anisak000 opened this issue Apr 19, 2017 · 0 comments

Comments

@anisak000
Copy link
Owner

In the Particle-Simulator Repo, the Quarks file, there is a test_quark.py file that tests the code in the quark.py file. However, when I run pytest, I get the following error message:

def test_quark_1():
  assert t.flip("up") == "down"

E TypeError: flip() takes 1 positional argument but 2 were given

The online explanation that "t" which is the class acts as a separate argument is a problem because how else would the assertion be made (I tried other ways too). I would most appreciate it if someone could give some advice on how to resolve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant