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

TypeError and AssertionError occurs during pytest in /tests #183

Open
miriabeh opened this issue Aug 27, 2024 · 0 comments
Open

TypeError and AssertionError occurs during pytest in /tests #183

miriabeh opened this issue Aug 27, 2024 · 0 comments

Comments

@miriabeh
Copy link

commands used up until the Errors:

  1. conda create -n oemof-tabular-numpyfix 'python=3.9'
  2. setup.py changed, due to new pyomo version supporting numpy version 2.x: numpy instead of numpy<2.0.0
  3. pip install -e .
  4. pytest
    (creates different ErrorMessages than displayed in /test_examples creates AttributeError and AssertionError while running pytest #179 )

Error Messages:

  • FAILED test_examples.py::test_example_datapackage_readability - TypeError: Bus.init() got an unexpected keyword argument 'type'
  • FAILED test_examples.py::test_scripting_examples - TypeError: Bus.init() got an unexpected keyword argument 'type'
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_storage_investment_green_field - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_storage_investment_brown_field - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_storage_investment_brown_field_no_storage_capacity_cost - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_backpressure_investment_green_field - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_backpressure_investment_brown_field - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_extraction_investment_green_field - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_extraction_investment_brown_field - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_dispatchable - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_storage - AssertionError: Failed matching lp_file_1 with lp_file_2:
  • FAILED test_multi_period_constraints.py::TestMultiPeriodConstraints::test_volatile - AssertionError: Failed matching lp_file_1 with lp_file_2:
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