File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class TestDocument(unittest.TestCase):
1212 ct = 1
1313
1414 def setUp (self ):
15- key = os .environ [ "TWIKEY_API_KEY" ]
15+ key = os .getenv ( "TWIKEY_API_KEY" )
1616 if key is None :
1717 self .skipTest ("No TWIKEY_API_KEY set" )
1818
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class TestInvoices(unittest.TestCase):
1313 _twikey = None
1414
1515 def setUp (self ):
16- key = os .environ [ "TWIKEY_API_KEY" ]
16+ key = os .getenv ( "TWIKEY_API_KEY" )
1717 if key is None :
1818 self .skipTest ("No TWIKEY_API_KEY set" )
1919
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class TestPaylinks(unittest.TestCase):
1212
1313 @unittest .skipIf ("TWIKEY_API_KEY" not in os .environ , "No TWIKEY_API_KEY set" )
1414 def setUp (self ):
15- key = os .environ [ "TWIKEY_API_KEY" ]
15+ key = os .getenv ( "TWIKEY_API_KEY" )
1616 base_url = "https://test.beta.twikey.com/api/creditor"
1717 if "TWIKEY_API_URL" in os .environ :
1818 base_url = os .environ ["TWIKEY_API_URL" ]
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class TestRefunds(unittest.TestCase):
1414
1515 @unittest .skipIf ("TWIKEY_API_KEY" not in os .environ , "No TWIKEY_API_KEY set" )
1616 def setUp (self ):
17- key = os .environ [ "TWIKEY_API_KEY" ]
17+ key = os .getenv ( "TWIKEY_API_KEY" )
1818 base_url = "https://test.beta.twikey.com/api/creditor"
1919 if "TWIKEY_API_URL" in os .environ :
2020 base_url = os .environ ["TWIKEY_API_URL" ]
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class TestTransaction(unittest.TestCase):
1515
1616 @unittest .skipIf ("TWIKEY_API_KEY" not in os .environ , "No TWIKEY_API_KEY set" )
1717 def setUp (self ):
18- key = os .environ [ "TWIKEY_API_KEY" ]
18+ key = os .getenv ( "TWIKEY_API_KEY" )
1919 base_url = "https://test.beta.twikey.com/api/creditor"
2020 if "TWIKEY_API_URL" in os .environ :
2121 base_url = os .environ ["TWIKEY_API_URL" ]
You can’t perform that action at this time.
0 commit comments