Skip to content

Conversation

@ketanbj
Copy link
Collaborator

@ketanbj ketanbj commented Mar 6, 2025

Implemented and added AAA Backend tests to check the backend API. There are total 5 tests that are skipped:

  • 3 tests are irrelevant failures that that need modification so currently they are skipped.
  • 2 tests are causing errors in Julia core - need more investigation,

@ketanbj ketanbj requested a review from loriab March 6, 2025 20:47
Copy link
Collaborator

@loriab loriab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think the import name should change, but it's up to you.

import unittest
from grid2op.tests.aaa_test_backend_interface import AAATestBackendAPI

from PandaModelsBackend import PandaModelsBackend
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for the repo name and the class name to be camelcase, but shouldn't the import name be lowercase? https://peps.python.org/pep-0008/#package-and-module-names


# The following tests are skipped as these tests may not relevant for the PandaModelsBackend backend
# in the PandaModelsBackend as PandaPower runnpp doesn't converge but runpm does
def test_17_isolated_gen_stops_computation(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would @unittest.expectedFailure be relevant? https://docs.python.org/3/library/unittest.html#skipping-tests-and-expected-failures it says it's only for failures in the assert, not for failures at RT, so maybe not.

@loriab loriab merged commit 37458c3 into main Mar 11, 2025
@loriab loriab deleted the backend_api_test_dev branch March 18, 2025 17:53
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

Successfully merging this pull request may close these issues.

3 participants