Qiskit / ecosystem

The Ecosystem consists of projects, tools, utilities, libraries and tutorials from a broad community of developers and researchers. The goal of the Ecosystem is to recognize, support and accelerate development of quantum technologies using Qiskit.
https://www.ibm.com/quantum/ecosystem
Apache License 2.0
100 stars 53 forks source link

Use tempfile for testing #661

Closed frankharkins closed 8 months ago

frankharkins commented 8 months ago

At the moment, we create mock files to run the tests and store them to a directory outside the repo. See example below.

https://github.com/Qiskit/ecosystem/blob/a708cd1dcdc00eb48a373d6e3df56b7e0e570f1b/tests/test_cli.py#L27

Instead, we should use Python's built-in tempfile module, and clean up accordingly.