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

tests: add unit testing #275

Merged
merged 1 commit into from
Apr 27, 2024
Merged

tests: add unit testing #275

merged 1 commit into from
Apr 27, 2024

Conversation

ReenigneArcher
Copy link
Member

@ReenigneArcher ReenigneArcher commented Apr 22, 2024

Description

  • Refactor some code to make imports more suitable for running tests and the application
  • Add unit testing to CI
  • Add basic unit testing to project
  • Add user info discord slash command
  • Move some slash commands to groups
  • Fix issue with channel object argument in /channels command
  • Fix issue with user selection in commands that accept a user to tag
  • /help command is now auto generated

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

Branch Updates

LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.

  • I want maintainers to keep my branch updated

@ReenigneArcher ReenigneArcher force-pushed the tests-add-unit-testing branch 2 times, most recently from 8ae4eef to 6ba2bfe Compare April 22, 2024 20:47
Copy link

codecov bot commented Apr 22, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@ReenigneArcher ReenigneArcher force-pushed the tests-add-unit-testing branch 9 times, most recently from 8681891 to 3c7e74f Compare April 24, 2024 02:20
"""
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server.bind(('0.0.0.0', 8080))

Check warning

Code scanning / CodeQL

Binding a socket to all network interfaces Medium

'0.0.0.0' binds a socket to all interfaces.
@ReenigneArcher ReenigneArcher force-pushed the tests-add-unit-testing branch 2 times, most recently from 9313af2 to 971abc5 Compare April 25, 2024 16:12
@ReenigneArcher
Copy link
Member Author

betamaxpy/betamax#211

@ReenigneArcher ReenigneArcher force-pushed the tests-add-unit-testing branch 7 times, most recently from ffe10d9 to c0c4c7d Compare April 27, 2024 01:27
@ReenigneArcher ReenigneArcher marked this pull request as ready for review April 27, 2024 01:35
@ReenigneArcher ReenigneArcher merged commit a19e9a6 into master Apr 27, 2024
15 checks passed
@ReenigneArcher ReenigneArcher deleted the tests-add-unit-testing branch April 27, 2024 01:36
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.

1 participant