qiskit-community / qiskit-nature

Qiskit Nature is an open-source, quantum computing, framework for solving quantum mechanical natural science problems.
https://qiskit-community.github.io/qiskit-nature/
Apache License 2.0
290 stars 197 forks source link

Add slow_test as it's no longer part of Qiskit 1.0 #1325

Closed woodsp-ibm closed 5 months ago

woodsp-ibm commented 5 months ago

Summary

slow_test used to be part of qiskit.test but the whole test folder was removed for Qiskit 1.0. This adds a copy of that slow_test decorator locally so that things continue working and of course will still work with 0.45 and 0.46 where its deprecated.

Same change as done in qiskit-community/qiskit-algorithms#141

Details and comments

(This seems to be the only apps repo that uses slow_test. I could not find any uses in ML, Opt or Fin.)

woodsp-ibm commented 5 months ago

It seems that algorithms already had a custom dict entry for func which is why similar code there passed. Anyway I added it here.

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 7745109958


Files with Coverage Reduction New Missed Lines %
qiskit_nature/second_q/drivers/psi4d/psi4driver.py 1 85.12%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 7743343685: -0.01%
Covered Lines: 8785
Relevant Lines: 10125

💛 - Coveralls