Skip to content

Commit a5a0ccc

Browse files
authored
Documentation minor fixes (#45)
1 parent 4bf07dd commit a5a0ccc

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

docs/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ pip install squape
1515
```
1616

1717
### Content
18-
The package consists of several modules:
19-
20-
- object_tree - seamless object tree navigation and search capabilities
21-
- report - adds features to enhance the reporting capabilities of Squish
22-
- settings - makes using various test settings easier and cleaner
23-
- squishserver - managing squishservers and (un)registering AUTs
24-
- video - adds features to enhance video capture capabilities of Squish
25-
- vps - extension of Squish verification points
18+
The package consists of several modules:
19+
20+
- object_tree - seamless object tree navigation and search capabilities
21+
- report - adds features to enhance the reporting capabilities of Squish
22+
- settings - makes using various test settings easier and cleaner
23+
- squishserver - managing squishservers and (un)registering AUTs
24+
- video - adds features to enhance video capture capabilities of Squish
25+
- vps - extension of Squish verification points
2626

2727
## Contribution
2828
The package is created and maintained by [Cyber Alpaca](https://cyberalpaca.com/)

squape/report.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,12 @@ def enable_loglevel_in_test_module() -> None:
231231
232232
After calling this function, the following 'test' module's functions will support
233233
LOGLEVEL report setting:
234-
- test.debug(...)
235-
- test.log(...)
236-
- test.warning(...)
237-
- test.fail(...)
238-
- test.fatal(...)
234+
235+
- test.debug(...)
236+
- test.log(...)
237+
- test.warning(...)
238+
- test.fail(...)
239+
- test.fatal(...)
239240
240241
Returns:
241242
None
@@ -251,9 +252,11 @@ def enable_loglevel_in_test_module() -> None:
251252
def section(title: str, description: str = "") -> None:
252253
"""Allows using Squish's sections as context managers
253254
https://doc.qt.io/squish/squish-api.html#test-startsection-function
255+
254256
Args:
255257
title (str): Section title
256258
description (str): Optional additional description of the section
259+
257260
Examples:
258261
```python
259262
with section("Add new person"):

squape/squishserver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def attachToApplication(self, aut: str):
178178
179179
Args:
180180
aut (str): the name of the attachable AUT
181+
181182
Returns:
182183
(ApplicationContext): application context
183184
"""
@@ -191,6 +192,7 @@ def startApplication(self, aut: str):
191192
192193
Args:
193194
aut (str): the name of the mapped AUT
195+
194196
Returns:
195197
(ApplicationContext): application context
196198
"""

squape/video.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def video_capture(message: str = "", remove_on_success: bool = False) -> None:
9595
!!! warning
9696
Removing videos on success does not work with Squish 7.1.1 and below
9797
when execution is triggered outside the Squish IDE.
98+
9899
Args:
99100
message (str): log a video n the test report using the specified message.
100101
Defaulting to empty string.

squape/vps.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
def vph_property(
1919
object_or_name: any, property_name: str, expected_value: any, msg: str
2020
) -> bool:
21-
""" "Highlights the object then verifies its property.
21+
"""Highlights the object then verifies its property.
2222
The object remains highlighted during verification to make it easier to identify
2323
on potential screenshots.
2424
@@ -27,6 +27,7 @@ def vph_property(
2727
property_name (str): name of the property to verify
2828
expected_value (any): expected value of the verified property
2929
msg (str): verification message
30+
3031
Returns:
3132
True if verification is positive, False otherwise
3233
"""

0 commit comments

Comments
 (0)