Teamworks-Executive-Suites / plutus

Complex payment and Calendar system for Teamworks Executive Suites
1 stars 0 forks source link

Add Pytest Tests for All Endpoints #37

Closed sweep-ai[bot] closed 11 months ago

sweep-ai[bot] commented 12 months ago

PR Feedback: πŸ‘Ž

Description

This pull request adds Pytest tests for all endpoints in the test_stripe.py file. It also includes some code formatting changes.

Summary

Fixes #36.


πŸŽ‰ Latest improvements to Sweep:


πŸ’‘ To get Sweep to edit this pull request, you can:

sweep-ai[bot] commented 12 months ago

Sandbox Executions

trunk fmt test_stripe.py || exit 0 1/2 βœ“
 βœ” Formatted test_stripe.py
Re-checking autofixed files...

 βœ” Formatted test_stripe.py
Re-checking autofixed files...

Checked 1 file
βœ” No issues
Run trunk upgrade to upgrade 1 plugin and 4 linters
trunk check --fix --print-failures test_stripe.py 2/2 ❌ (`1`)
  ISSUES  
test_stripe.py:11:0
 11:0   low   Possible hardcoded password: 'sk_test_4eC39HqLyjWDarjtT1zdp7dc'                                bandit/B105
 27:0   low   Use of assert detected. The enclosed code will be removed when compiling to optimised byte     bandit/B101
              code.                                                                                                     
 28:0   low   Use of assert detected. The enclosed code will be removed when compiling to optimised byte     bandit/B101
              code.                                                                                                     
 32:0   low   Use of assert detected. The enclosed code will be removed when compiling to optimised byte     bandit/B101
              code.                                                                                                     
 40:0   low   Use of assert detected. The enclosed code will be removed when compiling to optimised byte     bandit/B101
              code.                                                                                                     
 41:0   low   Use of assert detected. The enclosed code will be removed when compiling to optimised byte     bandit/B101
              code.                                                                                                     
 46:0   low   Use of assert detected. The enclosed code will be removed when compiling to optimised byte     bandit/B101
              code.                                                                                                     
 53:1   high  Module level import not at top of file                                                         ruff/E402  
 55:1   high  Module level import not at top of file                                                         ruff/E402  
 55:8   high  Redefinition of unused `stripe` from line 5                                                    ruff/F811  
 56:1   high  Module level import not at top of file                                                         ruff/E402  
 56:22  high  Redefinition of unused `debug` from line 6                                                     ruff/F811  
 57:1   high  Module level import not at top of file                                                         ruff/E402  
 57:20  high  Redefinition of unused `load_dotenv` from line 7                                               ruff/F811  
Checked 1 file
βœ– 14 new issues

trunk fmt test_stripe.py || exit 0 1/2 βœ“
 βœ” Formatted test_stripe.py
Re-checking autofixed files...

 βœ” Formatted test_stripe.py
Re-checking autofixed files...

Checked 1 file
βœ” No issues
Run trunk upgrade to upgrade 1 plugin and 4 linters
trunk check --fix --print-failures test_stripe.py 2/2 βœ“
Checked 1 file
βœ” No issues

trunk fmt test_stripe.py || exit 0 1/2 βœ“
Checked 1 file
βœ” No issues
Run trunk upgrade to upgrade 1 plugin and 4 linters
trunk check --fix --print-failures test_stripe.py 2/2 βœ“
Checked 1 file
βœ” No issues

sweep-ai[bot] commented 12 months ago

Apply Sweep Rules to your PR?