mesh-adaptation / goalie

Goal-oriented error estimation and mesh adaptation for finite element problems solved using Firedrake
Other
1 stars 1 forks source link

Use mocking in the tests #42

Open jwallwork23 opened 1 year ago

jwallwork23 commented 1 year ago

In many cases it isn't necessary to actually build meshes, function spaces, or functions for testing. We should be able to use Python mocking instead. It should speed things up a bit.

https://docs.python.org/3/library/unittest.mock.html

jwallwork23 commented 9 months ago

How about we mock the mesh class in as many cases as we can get away with? e.g., tests that exceptions get raised.