1112zakaria / user-auth-access-control-prototype

0 stars 0 forks source link

Test the password file mechanism #9

Closed 1112zakaria closed 12 months ago

1112zakaria commented 1 year ago

Implement tests of the password file mechanism.

The functions implemented in problem2c.py require testing. The tests shall be written using Python unittest library.

The following functions and classes shall be tested:

Describe how this was tested in the report.

Depends on #8

Checklist - [X] Create `src/test_problem2c.py` ✓ https://github.com/1112zakaria/user-auth-access-control-prototype/commit/0db69001bc4e86d2762b597075504069e880237e - [X] Running GitHub Actions for `src/test_problem2c.py` ✓ - [X] Modify `src/problem2c.py` ✓ https://github.com/1112zakaria/user-auth-access-control-prototype/commit/7fbccb1580f04c986c8463156f9cc5828468bf56 - [X] Running GitHub Actions for `src/problem2c.py` ✓ ![Flowchart](https://raw.githubusercontent.com/1112zakaria/user-auth-access-control-prototype/sweep/assets/ef2c3ed6c88f1619ec17816dd458569482ae498b30428ee616b9efde3ca9cddb_9_flowchart.svg)
sweep-ai[bot] commented 12 months ago

Here's the PR! https://github.com/1112zakaria/user-auth-access-control-prototype/pull/33.

Sweep Basic Tier: I'm using GPT-3.5. You have 0 GPT-4 tickets left for the month and 0 for the day. (tracking ID: 7a87ad01bb)

For more GPT-4 tickets, visit our payment portal. For a one week free trial, try Sweep Pro (unlimited GPT-4 tickets).

Actions (click)

Sandbox Execution ✓

Here are the sandbox execution logs prior to making any changes:

Sandbox logs for 98dc1ae
Checking src/problem2c.py for syntax errors... ✅ src/problem2c.py has no syntax errors! 1/1 ✓
Checking src/problem2c.py for syntax errors...
✅ src/problem2c.py has no syntax errors!

Sandbox passed on the latest main, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/1112zakaria/user-auth-access-control-prototype/blob/98dc1ae69e716d1bf53aa64d32e32adf82b1437c/src/problem2c.py#L32-L80 https://github.com/1112zakaria/user-auth-access-control-prototype/blob/98dc1ae69e716d1bf53aa64d32e32adf82b1437c/src/problem2c.py#L1-L32

Step 2: ⌨️ Coding

Ran GitHub Actions for 0db69001bc4e86d2762b597075504069e880237e:

Ran GitHub Actions for 7fbccb1580f04c986c8463156f9cc5828468bf56:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/test-password-file-mechanism.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord