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

Are the tests failing or did I run them incorrectly? #1

Closed
szabgab opened this issue Dec 1, 2022 · 1 comment
Closed

Are the tests failing or did I run them incorrectly? #1

szabgab opened this issue Dec 1, 2022 · 1 comment

Comments

@szabgab
Copy link
Contributor

szabgab commented Dec 1, 2022

As I have not found instructions how to do that I might be trying to run the test incorrectly, but this is what I get now:

$ pytest  examples.py 
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
rootdir: /home/gabor/os/MoreBeautifulPython
plugins: hydra-core-1.2.0, random-order-1.0.4, xdist-2.5.0, forked-1.4.0, anyio-3.6.1
collected 2 items                                                              

examples.py EE                                                           [100%]

==================================== ERRORS ====================================
____________________ ERROR at setup of test_sleep_and_fail _____________________
file /home/gabor/os/MoreBeautifulPython/examples.py, line 11
  def test_sleep_and_fail(x, fail_rate=0, running_time=0.2):
E       fixture 'x' not found
>       available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, hydra_restore_singletons, hydra_sweep_runner, hydra_task_runner, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, worker_id
>       use 'pytest --fixtures [testpath]' for help on them.

/home/gabor/os/MoreBeautifulPython/examples.py:11
____________________ ERROR at setup of test_read_from_list _____________________
file /home/gabor/os/MoreBeautifulPython/examples.py, line 17
  def test_read_from_list(idx, vec):
E       fixture 'idx' not found
>       available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, hydra_restore_singletons, hydra_sweep_runner, hydra_task_runner, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, worker_id
>       use 'pytest --fixtures [testpath]' for help on them.

/home/gabor/os/MoreBeautifulPython/examples.py:17
=========================== short test summary info ============================
ERROR examples.py::test_sleep_and_fail
ERROR examples.py::test_read_from_list
============================== 2 errors in 0.02s ===============================
@szabgab szabgab changed the title Tests are failing? Are the tests failing or did I run them incorrectly? Dec 1, 2022
@sudongqi
Copy link
Owner

sudongqi commented Aug 9, 2023

@szabgab sorry, I didn't monitor the issues on this repo. I test this repo using python examples.py, it will print out a log file on the root directory

@sudongqi sudongqi closed this as completed Aug 9, 2023
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

2 participants