Skip to content

Commit

Permalink
Adjust tests and init. Some classes still missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Jul 15, 2022
1 parent a2e86ca commit 79768ce
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 36 deletions.
5 changes: 1 addition & 4 deletions opendssdirect/dss/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@
from ..Settings import _Settings as Settings
from ..Solution import _Solution as Solution
from ..SwtControls import _SwtControls as SwtControls

# from ..Text import _Text as Text
from .. import Text as Text

from ..Text import _Text as Text
from ..Topology import _Topology as Topology
from ..Transformers import _Transformers as Transformers
from ..Vsources import _Vsources as Vsources
Expand Down
65 changes: 33 additions & 32 deletions tests/test_opendssdirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,134 +37,135 @@ def test_package_import():
def test_module_import():

import inspect
from opendssdirect.Iterable import Iterable, Base

from opendssdirect import ActiveClass as m

assert inspect.ismodule(m)
assert isinstance(m, Base)

from opendssdirect import Basic as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Base)

from opendssdirect import Bus as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Base)

from opendssdirect import Capacitors as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import CapControls as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Circuit as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Base)

from opendssdirect import CktElement as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Iterable)

from opendssdirect import Element as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Base)

from opendssdirect import Executive as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Base)

from opendssdirect import Fuses as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Generators as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Isource as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Lines as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Loads as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import LoadShape as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Meters as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Monitors as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Iterable)

from opendssdirect import Parser as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Base)

from opendssdirect import PDElements as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Base)

from opendssdirect import Properties as m

assert inspect.ismodule(m)
assert inspect.ismodule(m) or isinstance(m, Iterable)

from opendssdirect import PVsystems as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Reclosers as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import RegControls as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Relays as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Sensors as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Settings as m

assert inspect.ismodule(m)
assert isinstance(m, Base)

from opendssdirect import Solution as m

assert inspect.ismodule(m)
assert isinstance(m, Base)

from opendssdirect import SwtControls as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Topology as m

assert inspect.ismodule(m)
assert isinstance(m, Base)

from opendssdirect import Transformers as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import Vsources as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import XYCurves as m

assert inspect.ismodule(m)
assert isinstance(m, Iterable)

from opendssdirect import dss_lib as m

Expand Down

0 comments on commit 79768ce

Please sign in to comment.