Repository navigation
Unit test generated by RoostGPT - #11
Open
harishagrawal wants to merge 2 commits into
Open
harishagrawal wants to merge 2 commits into
harishagrawal wants to merge 2 commits into
Conversation
Using AI Model meta-llama-3-70b-instruct-041824
Using AI Model meta-llama-3-70b-instruct-041824, for user feedback: Fix this error seen when running pytest --cov -v
```
return compile(source, filename, mode, flags,
E File /Users/harishagrawal/go/src/github.com/harishagrawal/python-mini-projects/projects/Billing_system/test_BillAppExitApp.py, line 152
E monkeypatch.setattr(root, destroy, lambda: raise Exception(Mocked error))
E ^^^^^
E SyntaxError: invalid syntax
```
harishagrawal
commented
May 3, 2024
| bill_app.bill_area() | ||
| assert bill_app.txtarea.get("1.0", "end-1c").endswith(f"\n Total Bil:\t\t\t Rs.{bill_app.total_bill}") | ||
|
|
||
| class BillApp: |
Owner
Author
There was a problem hiding this comment.
class code is redeclared in test file
and the instance is missing for the test functions above
Owner
Author
There was a problem hiding this comment.
pytest fixture could be used
Owner
Author
|
After adding bill_app fixture to test_BillAppBillArea.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Access Logs At - https://test.roost.ai/roostgpt/logs?trigger_id=0e050b0f-c71d-40a4-b5db-f10f7c1beb3c