Skip to content

Commit

Permalink
Documentation minor fixes (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adakar authored Sep 19, 2023
1 parent 4bf07dd commit a5a0ccc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
16 changes: 8 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ pip install squape
```

### Content
The package consists of several modules:

- object_tree - seamless object tree navigation and search capabilities
- report - adds features to enhance the reporting capabilities of Squish
- settings - makes using various test settings easier and cleaner
- squishserver - managing squishservers and (un)registering AUTs
- video - adds features to enhance video capture capabilities of Squish
- vps - extension of Squish verification points
The package consists of several modules:

- object_tree - seamless object tree navigation and search capabilities
- report - adds features to enhance the reporting capabilities of Squish
- settings - makes using various test settings easier and cleaner
- squishserver - managing squishservers and (un)registering AUTs
- video - adds features to enhance video capture capabilities of Squish
- vps - extension of Squish verification points

## Contribution
The package is created and maintained by [Cyber Alpaca](https://cyberalpaca.com/)
Expand Down
13 changes: 8 additions & 5 deletions squape/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,12 @@ def enable_loglevel_in_test_module() -> None:
After calling this function, the following 'test' module's functions will support
LOGLEVEL report setting:
- test.debug(...)
- test.log(...)
- test.warning(...)
- test.fail(...)
- test.fatal(...)
- test.debug(...)
- test.log(...)
- test.warning(...)
- test.fail(...)
- test.fatal(...)
Returns:
None
Expand All @@ -251,9 +252,11 @@ def enable_loglevel_in_test_module() -> None:
def section(title: str, description: str = "") -> None:
"""Allows using Squish's sections as context managers
https://doc.qt.io/squish/squish-api.html#test-startsection-function
Args:
title (str): Section title
description (str): Optional additional description of the section
Examples:
```python
with section("Add new person"):
Expand Down
2 changes: 2 additions & 0 deletions squape/squishserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def attachToApplication(self, aut: str):
Args:
aut (str): the name of the attachable AUT
Returns:
(ApplicationContext): application context
"""
Expand All @@ -191,6 +192,7 @@ def startApplication(self, aut: str):
Args:
aut (str): the name of the mapped AUT
Returns:
(ApplicationContext): application context
"""
Expand Down
1 change: 1 addition & 0 deletions squape/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def video_capture(message: str = "", remove_on_success: bool = False) -> None:
!!! warning
Removing videos on success does not work with Squish 7.1.1 and below
when execution is triggered outside the Squish IDE.
Args:
message (str): log a video n the test report using the specified message.
Defaulting to empty string.
Expand Down
3 changes: 2 additions & 1 deletion squape/vps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def vph_property(
object_or_name: any, property_name: str, expected_value: any, msg: str
) -> bool:
""" "Highlights the object then verifies its property.
"""Highlights the object then verifies its property.
The object remains highlighted during verification to make it easier to identify
on potential screenshots.
Expand All @@ -27,6 +27,7 @@ def vph_property(
property_name (str): name of the property to verify
expected_value (any): expected value of the verified property
msg (str): verification message
Returns:
True if verification is positive, False otherwise
"""
Expand Down

0 comments on commit a5a0ccc

Please sign in to comment.