Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BuweiChen authored Apr 16, 2024
1 parent d42d8e2 commit 9da4659
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Some stuff to keep in mind while writing new tests

Here's an example of a test complete with mocks and fixtures:

####**`mock_client`**
#### **`mock_client`**
```python
@pytest.fixture
def client():
Expand Down Expand Up @@ -202,8 +202,8 @@ def client():
with app.test_client() as client:
yield client
```
####**`mock_chat_completion_request`**
```
#### **`mock_chat_completion_request`**
```python
@pytest.fixture
def mock_chat_completion_complete():
with patch("app.chat_completion_request") as mock:
Expand Down Expand Up @@ -268,8 +268,8 @@ def mock_chat_completion_complete():
mock.side_effect = responses
yield mock
```
####**`test`**
```
#### **`test`**
```python
def test_with_frontend_filters(client, mock_chat_completion_complete):
request_data = {
"season_codes": ["bruh"],
Expand Down

0 comments on commit 9da4659

Please sign in to comment.