-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for reading package __init__.py files
Read docstrings from a package __init__.py file and process tokens for tests within the package directory. It will allow using __init__.py to define package level defaults for tokens. This change is for issue #127. Signed-off-by: Scott Poore <[email protected]>
- Loading branch information
Showing
4 changed files
with
82 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"""Sample package __init__.py file. | ||
:Feature: Package Feature | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- encoding: utf-8 -*- | ||
"""Test Module for Package Sample Test | ||
:Setup: Global setup | ||
""" | ||
|
||
|
||
class TestPackage1(): | ||
"""Test Class for Package Sample Test | ||
:Setup: Class setup | ||
""" | ||
|
||
# Test with Feature inherited from __init__.py | ||
def test_positive_login_3(self): | ||
"""Login with Latin credentials | ||
:Setup: Method setup | ||
:Steps: 1. Login to the application with valid Latin credentials | ||
:Assert: Login is successful | ||
:Tags: t1 | ||
""" | ||
# Code to perform the test | ||
pass | ||
|