Skip to content

Commit a151a3a

Browse files
[STYLE] Applied changes from Review (- WIP PR #213 -)
Changes in file docs/utils.p: * Minor change to doctests
1 parent 836eeeb commit a151a3a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,15 @@ def sanitize_url(url: str) -> str:
203203
204204
Unit-Testing:
205205
206+
Testcase 0: First set up test fixtures by importing utils.
207+
208+
>>> import docs.utils as _utils
209+
>>>
210+
206211
Testcase 1: Basic URL with spaces and special characters.
207212
208213
>>> url_fxtr = "https://github.com/user/Hello World!"
209-
>>> utils.sanitize_url(url_fxtr)
214+
>>> _utils.sanitize_url(url_fxtr)
210215
'https://github.com/user/Hello%20World%21'
211216
>>>
212217

0 commit comments

Comments
 (0)