fix cpw warnings
@@ -9,6 +9,8 @@ from skrf.frequency import Frequency
import skrf as rf
from numpy.testing import assert_array_almost_equal, assert_allclose, run_module_suite
from matplotlib import pyplot as plt
+import pytest
+
rf.stylely()
@@ -107,6 +109,7 @@ class CPWTestCase(unittest.TestCase):
tand = self.tand,
compatibility_mode = 'qucs',
diel = 'frequencyinvariant')
+ with pytest.warns(FutureWarning, match="`embed` will be deprecated"):
line = cpw.line(d=self.l, unit='m', embed = True, z0=cpw.Z0)
line.name = '`Media.CPW` skrf,qucs'
@@ -183,6 +186,7 @@ class CPWTestCase(unittest.TestCase):
tand = self.tand,
compatibility_mode = 'ads',
diel = 'djordjevicsvensson')
+ with pytest.warns(FutureWarning, match="`embed` will be deprecated"):
line = cpw.line(d=self.l, unit='m', embed = True, z0=cpw.Z0)
line.name = '`Media.CPW` skrf,ads'
@@ -286,6 +290,8 @@ class CPWTestCase(unittest.TestCase):
with self.assertWarns(RuntimeWarning) as context:
cpw = CPW(frequency = freq, z0 = 50., w = 3.0e-3, s = 0.3e-3, t = 35e-6,
ep_r = 4.5, rho = 1.7e-8)
+
+ with pytest.warns(FutureWarning, match="`embed` will be deprecated"):
line = cpw.line(d = 25e-3, unit = 'm', embed = True, z0 = cpw.Z0)
def test_zero_thickness(self):
