rickstaa / stable-gym

This package contains several gymnasium environments with positive definite cost functions, designed for compatibility with stable RL agents.
https://rickstaa.dev/stable-gym
MIT License
12 stars 2 forks source link

test: improve tests with fixtures #247

Closed rickstaa closed 1 year ago

rickstaa commented 1 year ago

This pull request improves the tests by replacing the metaclass initialization steps with fixtures.

codecov[bot] commented 1 year ago

Codecov Report

Merging #247 (f129651) into main (01d924f) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #247   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines          420       499   +79     
=========================================
+ Hits           420       499   +79     
Impacted Files Coverage Δ
tests/test_ant_cost.py 100.00% <100.00%> (ø)
tests/test_cartpole_cost.py 100.00% <100.00%> (ø)
tests/test_cartpole_tracking_cost.py 100.00% <100.00%> (ø)
tests/test_fetch_reach_cost.py 100.00% <100.00%> (ø)
tests/test_half_cheetah_cost.py 100.00% <100.00%> (ø)
tests/test_hopper_cost.py 100.00% <100.00%> (ø)
tests/test_humanoid_cost.py 100.00% <100.00%> (ø)
tests/test_minitaur_cost.py 100.00% <100.00%> (ø)
tests/test_oscillator.py 100.00% <100.00%> (ø)
tests/test_oscillator_complicated.py 100.00% <100.00%> (ø)
... and 2 more