Skip to content

Conversation

@paulosouza-stark
Copy link
Contributor

Fixed

  • brcode attribute from InvoicePullSubscription

def test_success(self):
requests = list(starkbank.invoicepullrequest.query(limit=5))
print(f"Number of InvoicePullRequests: {len(requests)}")
i = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Não seria melhor definir uma variável limit = 5 e depois fazer assertEqual(limit, len(requests)?
Não sei como que está o padrão nos outros testes do SDK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temos nesse formato nos testes de Invoice:

invoices, cursor = starkbank.invoice.page(limit=2, cursor=cursor)
invoices = starkbank.invoice.query(limit=10)

Também em boleto:

boletos, cursor = starkbank.boleto.page(limit=2, cursor=cursor)
boletos = starkbank.boleto.query(limit=1)

def test_success(self):
subscriptions = list(starkbank.invoicepullsubscription.query(limit=5))
print(f"Number of InvoicePullSubscriptions: {len(subscriptions)}")
i = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mesma coisa

@paulosouza-stark paulosouza-stark force-pushed the fix/invoice-pull-subscription-brcode branch from 1a7a914 to 0af58f9 Compare November 11, 2025 19:29
@paulosouza-stark paulosouza-stark deleted the fix/invoice-pull-subscription-brcode branch November 11, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants