Rather than defining the edges in line in the tests this uses a pytest fixture to define them
This enables us to split the tests into individual functions without too much code duplication. That in turn fixes the test error in
https://github.com/cytoscape/ipycytoscape/pull/300 It seems like copy.copy does not really do a deep copy (at least in the python 3.6 version used in github actions)
Since we are using a function scoped fixture recreated for each test we can drop the use of copy.copy
Note that if we use module scoped fixtures with copy.copy as in a0968e1df17b03e96484a1e7f41f085d55c89e79 I can reproduce the same error as in #300
Rather than defining the edges in line in the tests this uses a pytest fixture to define them This enables us to split the tests into individual functions without too much code duplication. That in turn fixes the test error in https://github.com/cytoscape/ipycytoscape/pull/300 It seems like
copy.copy
does not really do a deep copy (at least in the python 3.6 version used in github actions)Since we are using a function scoped fixture recreated for each test we can drop the use of copy.copy
Note that if we use module scoped fixtures with copy.copy as in a0968e1df17b03e96484a1e7f41f085d55c89e79 I can reproduce the same error as in #300