ReactionMechanismGenerator / ARC

ARC - Automatic Rate Calculator
https://reactionmechanismgenerator.github.io/ARC/index.html
MIT License
43 stars 21 forks source link

Importing local settings will now check if pytest is active #643

Closed calvinp0 closed 1 year ago

calvinp0 commented 1 year ago

When a user undertakes testing, for example in T3, it will import the users local settings which can be problematic if they are not using one of the defined ESS. Therefore, the addition of the pytest statement will then make it so if the user is testing, it will import arcs default settings and not the local settings.

codecov[bot] commented 1 year ago

Codecov Report

Merging #643 (485c72b) into main (c62382e) will increase coverage by 0.00%. The diff coverage is 0.00%.

:exclamation: Current head 485c72b differs from pull request most recent head 035bd8d. Consider uploading reports for the commit 035bd8d to get more accurate results

@@           Coverage Diff           @@
##             main     #643   +/-   ##
=======================================
  Coverage   73.13%   73.14%           
=======================================
  Files          99       99           
  Lines       26282    26280    -2     
  Branches     5497     5496    -1     
=======================================
  Hits        19222    19222           
+ Misses       5698     5696    -2     
  Partials     1362     1362           
Impacted Files Coverage Δ
arc/imports.py 20.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more