diff --git a/examples/pix_cob/consultar_cobranca.py b/examples/pix_cob/consultar_cobranca.py index 93732998..5c1498af 100644 --- a/examples/pix_cob/consultar_cobranca.py +++ b/examples/pix_cob/consultar_cobranca.py @@ -4,11 +4,9 @@ from bb_wrapper.wrapper import PIXCobBBWrapper -c = PIXCobBBWrapper( - cert=("./certs/cert.pem", "./certs/key.pem") -) +c = PIXCobBBWrapper(cert=("./certs/cert.pem", "./certs/key.pem")) -txid = '6lEZLwT4o1fjmg1BVW3KeIPLc0' +txid = "6lEZLwT4o1fjmg1BVW3KeIPLc0" response = c.consultar_cobranca(txid) diff --git "a/examples/pix_cob/criar_cobran\303\247a_cpf.py" "b/examples/pix_cob/criar_cobran\303\247a_cpf.py" index adf6e026..c0bc6d97 100644 --- "a/examples/pix_cob/criar_cobran\303\247a_cpf.py" +++ "b/examples/pix_cob/criar_cobran\303\247a_cpf.py" @@ -4,9 +4,7 @@ from bb_wrapper.wrapper import PIXCobBBWrapper -c = PIXCobBBWrapper( - cert=("./certs/cert.pem", "./certs/key.pem") -) +c = PIXCobBBWrapper(cert=("./certs/cert.pem", "./certs/key.pem")) data = { "expiracao": 60 * 60, # 60 segundos = 1 minuto. 60 minutos = 1h diff --git a/tests/wrapper/test_cobrancas.py b/tests/wrapper/test_cobrancas.py index ad662192..38c632cc 100644 --- a/tests/wrapper/test_cobrancas.py +++ b/tests/wrapper/test_cobrancas.py @@ -250,7 +250,7 @@ def test_build_url(self): expected = ( "https://api.sandbox.bb.com.br/cobrancas/v2/boletos" - f"?gw-dev-app-key={wrapper._BaseBBWrapper__gw_app_key}" + f"?gw-dev-app-key={wrapper._gw_app_key}" ) self.assertEqual(result, expected) diff --git a/tests/wrapper/test_pagamentos.py b/tests/wrapper/test_pagamentos.py index 8278fcb4..f7184c76 100644 --- a/tests/wrapper/test_pagamentos.py +++ b/tests/wrapper/test_pagamentos.py @@ -32,7 +32,7 @@ def test_construct_url_1(self): expected = ( f"https://api.sandbox.bb.com.br/pagamentos-lote/v1/" - f"?gw-dev-app-key={PagamentoLoteBBWrapper()._BaseBBWrapper__gw_app_key}" + f"?gw-dev-app-key={PagamentoLoteBBWrapper()._gw_app_key}" ) self.assertEqual(expected, result) @@ -53,7 +53,7 @@ def test_construct_url_prod(self): expected = ( f"https://api-ip.bb.com.br/pagamentos-lote/v1/" - f"?gw-dev-app-key={PagamentoLoteBBWrapper()._BaseBBWrapper__gw_app_key}" + f"?gw-dev-app-key={PagamentoLoteBBWrapper()._gw_app_key}" ) self.assertEqual(expected, result) diff --git a/tests/wrapper/test_pix_cob.py b/tests/wrapper/test_pix_cob.py index feebde6b..ad6cd122 100644 --- a/tests/wrapper/test_pix_cob.py +++ b/tests/wrapper/test_pix_cob.py @@ -172,7 +172,7 @@ def test_construct_url_1(self): """ result = PIXCobBBWrapper()._construct_url(end_bar=True) - expected = "https://api-pix.hm.bb.com.br/pix/v2/?gw-dev-app-key=KEY" + expected = "https://api.hm.bb.com.br/pix/v2/?gw-dev-app-key=KEY" self.assertIn(expected, result) @@ -188,7 +188,7 @@ def test_construct_url_2(self): """ result = PIXCobBBWrapper()._construct_url(end_bar=False) - expected = "https://api-pix.hm.bb.com.br/pix/v2?gw-dev-app-key=" + expected = "https://api.hm.bb.com.br/pix/v2?gw-dev-app-key=" self.assertIn(expected, result) def test_consultar_cobranca_content_bizarro(self):