Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

num_regression is throwing exceptions when it receives a list of objects #42

Open
csantosss opened this issue Dec 23, 2020 · 1 comment

Comments

@csantosss
Copy link
Contributor

This problem started to occur after adding the dataframe_regression fixture.

@csantosss
Copy link
Contributor Author

num_regression = <pytest_regressions.num_regression.NumericRegressionFixture object at 0x00000221380F7A58>
    def test_torque_drag_work_string(num_regression):
        work_string = BuildWorkString(WellType.SPE_84246)
>       num_regression.check(CheckWorkString(work_string))
E       AssertionError: Only numeric data is supported on dataframe_regression fixture.
E         Array with type 'object' was given.
E         
E       assert dtype('O') not in ['m', 'M', 'O', 'S', 'a', 'U', ...]
E        +  where dtype('O') = 0     WorkStringElementType.Pipe\n1     WorkStringElementType.Pipe\n2     WorkStringElementType.Pipe\n3     WorkStringEle...pe.Pipe\n15    WorkStringElementType.Pipe\n16    WorkStringElementType.Pipe\nName: work_string_element_type, dtype: object.dtype
source\python\welllib\sim\_tests\test_torque_drag_base_structure.py:103: AssertionError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant