Skip to content

Commit

Permalink
skip compilation tests during package free run
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Dec 12, 2023
1 parent f47d00a commit a4a01dc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_glia.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def test_discovery(self):
self.assertGreater(len(glia._manager.packages), 0)


@skipUnlessTestMods
class TestCompilation(unittest.TestCase):
@classmethod
def setUpClass(cls):
Expand All @@ -36,15 +37,13 @@ def test_compilation(self):
with self.subTest(path=path):
self.assertTrue(os.path.exists(path), "Missing library file")

@skipUnlessTestMods
def test_insert(self):
# Test mechanism insertion
mech = glia._manager.insert(p.Section(), "Na")
self.assertIsInstance(mech, glia._glia.MechAccessor)
self.assertTrue(glia._manager.test_mechanism("AMPA"))
self.assertTrue(glia._manager.test_mechanism("Na"))

@skipUnlessTestMods
def test_insert_attrs(self):
# Test mechanism attributes
sec = p.Section()
Expand All @@ -58,13 +57,11 @@ def test_insert_attrs(self):
attributes={"doesntexist": 30},
)

@skipUnlessTestMods
def test_insert_pp(self):
# Test point process insertion
pp = glia._manager.insert(p.Section(), "AMPA")
self.assertIsInstance(pp, glia._glia.MechAccessor)

@skipUnlessTestMods
def test_insert_pp_attrs(self):
glia._manager.insert(p.Section(), "AMPA", attributes={"U": 30})
self.assertRaises(
Expand Down

0 comments on commit a4a01dc

Please sign in to comment.