Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main.py overhaul and deployment tests #97

Merged
merged 11 commits into from
Aug 3, 2024
Merged

Conversation

brownsugar-bobamilktea
Copy link
Contributor

  • Rewrote main.py as a class for modularity and to allow monkey patching
  • Created deployment test:
    • Monkeypatched away several functions that main.py needs but requires internet access
    • Tests that the bot can run with minimal external API calls, e.g., the main.py has no import or syntax errors on launch
  • Marked deployment test to differentiate it from unit tests
  • Changed actions file to run unit and deployment tests separately for clarity

@brownsugar-bobamilktea
Copy link
Contributor Author

oh

Copy link
Member

@howardt12345 howardt12345 left a comment

Choose a reason for hiding this comment

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

lgtm

@brownsugar-bobamilktea brownsugar-bobamilktea merged commit f0502b7 into main Aug 3, 2024
1 check passed
@brownsugar-bobamilktea brownsugar-bobamilktea deleted the test-bot branch August 3, 2024 01:40
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.

2 participants