Skip to content

Commit 8f55870

Browse files
Update Blog “sivayanama-testing-opsramp-apis-with-pytest-fixtures”
1 parent d7335b8 commit 8f55870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/blog/sivayanama-testing-opsramp-apis-with-pytest-fixtures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pytest --version
3838
pytest 7.4.0
3939
```
4040
## Define fixture
41-
You can define fixtures just by decorating a simple Python function with [@pytest.fixture](https://docs.pytest.org/en/6.2.x/reference.html#pytest.fixture) for example
41+
You can define fixtures by decorating a simple Python function with [@pytest.fixture](https://docs.pytest.org/en/6.2.x/reference.html#pytest.fixture) for example
4242

4343

4444
Python Decorators are a very powerful and convenient way to alter the behaviour of functions. For more details, refer to [Python Decorators](https://www.geeksforgeeks.org/decorators-in-python).
@@ -88,7 +88,7 @@ def get_auth_header(api_endpoint, client_id, client_secret, grant_type="client_c
8888
'content-type': "application/x-www-form-urlencoded",
8989
}
9090
```
91-
## Define fixture to get Access Token
91+
## Define fixture to get access token
9292
You can transform the above function as a PyTest fixture by simply decorating the code as shown below.
9393

9494

0 commit comments

Comments
 (0)