mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 01:14:35 +02:00
Trying to fix unit tests
This commit is contained in:
Vendored
+24
@@ -121,6 +121,12 @@ class DBLibrary_TestClass < TestBase
|
||||
|
||||
def test_4_library_registration_and_rename
|
||||
|
||||
# clean up before
|
||||
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
|
||||
l = RBA::Library::library_by_name(name)
|
||||
l && l.unregister
|
||||
end
|
||||
|
||||
lib = RBA::Library::new
|
||||
lib.description = "LIB1"
|
||||
lib.delete
|
||||
@@ -159,6 +165,12 @@ class DBLibrary_TestClass < TestBase
|
||||
|
||||
def test_5_reload
|
||||
|
||||
# clean up before
|
||||
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
|
||||
l = RBA::Library::library_by_name(name)
|
||||
l && l.unregister
|
||||
end
|
||||
|
||||
lib = MyLibImpl::new
|
||||
lib.description = "LIB1"
|
||||
lib.register("RBA-unit-test")
|
||||
@@ -178,6 +190,12 @@ class DBLibrary_TestClass < TestBase
|
||||
|
||||
def test_6_cells_become_defunct_after_unregister
|
||||
|
||||
# clean up before
|
||||
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
|
||||
l = RBA::Library::library_by_name(name)
|
||||
l && l.unregister
|
||||
end
|
||||
|
||||
lib = RBA::Library::new
|
||||
lib.description = "LIB1"
|
||||
lib.register("RBA-unit-test")
|
||||
@@ -209,6 +227,12 @@ class DBLibrary_TestClass < TestBase
|
||||
|
||||
def test_7_change_ref
|
||||
|
||||
# clean up before
|
||||
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
|
||||
l = RBA::Library::library_by_name(name)
|
||||
l && l.unregister
|
||||
end
|
||||
|
||||
lib = RBA::Library::new
|
||||
lib.description = "LIB1"
|
||||
lib.register("RBA-unit-test")
|
||||
|
||||
Reference in New Issue
Block a user