To test tf2onnx changes with different operators set your external variable prior to calling pytest.
So for example in a windows setup this will run the tests
set TF2ONNX_TEST_OPSET=11
pytest
and in a standard linux setup
export TF2ONNX_TEST_OPSET=11