Skip to content

isolated_notebook_test only works from the repository root #4458

Open
@mpharrigan

Description

Unlike all other tests, the relative paths in isolated_notebook_test only work if you're running pytest from the repository root. If you're using PyCharm, for example, the test fail when you use the "run pytest on this file" menu action.

Suggest: using something like os.path.dirname(os.path.abspath(__file__)) to find the files in the test. Or: some of the other dev_tools tools query git to find the repo root

Metadata

Assignees

No one assigned

    Labels

    area/notebook-testingkind/bug-reportSomething doesn't seem to work.no QC knowledge neededWant to contribute to Cirq, but don't know quantum computing? This issue is for you.triage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

    Type

    No type

    Projects

    • Status

      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions