mcowpert
mcowpert
I would like to be able to construct a test as: ``` @pytest.mark.parametrize("method", ["trigger","activate"]) @mock.patch.object(ClassUnderTest, method) def test_verify_method_called_by_run(method_): uut = ClassUnderTest() uut.run() method_.assert_was_called() ``` But this results in `E NameError:...
The mention of namespaces on this page is fine if rudimentary. However, there is also the concept of a "namespace package", something that my organization is making use of. This...
Most of the tutorial in the README works as written, but it's never clear why `path` is introduced `mypkg`. But at the end of the tutorial is this: > the...
Working in a pants configuration set up by a coworker who is currently unavailable. This setup has been working with `test` and `fmt` commands for a number of weeks. The...