-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lazily import libraries when needed (#1114)
* Lazily import libraries when needed * Poetry update * Check docs building when failing to include module * Fix and test docstring meta-driven concatenation * Release note and Poetry update (main: 27.4.2)
- Loading branch information
Showing
10 changed files
with
208 additions
and
154 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "rpaframework" | ||
version = "27.4.1" | ||
version = "27.4.2" | ||
description = "A collection of tools and libraries for RPA" | ||
authors = ["RPA Framework <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
@@ -76,7 +76,8 @@ click = "^8.1.2" | |
PyYAML = ">=5.4.1,<7.0.0" | ||
tenacity = "^8.0.1" | ||
htmldocx = "^0.0.6" | ||
python-docx = "^0.8.11" | ||
python-docx = "^0.8.11" # htmldocx | ||
beautifulsoup4 = "^4.7.0" # htmldocx, O365 | ||
hubspot-api-client = "^4.0.6" | ||
pyotp = "^2.6.0" | ||
importlib-metadata = "^4.13.0" | ||
|
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
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,38 @@ | ||
import pytest | ||
|
||
|
||
class TestOutlook: | ||
"""Gathers `RPA.Outlook.Application` tests.""" | ||
|
||
@pytest.fixture | ||
def Application(self): | ||
from RPA.Outlook.Application import Application | ||
|
||
return Application | ||
|
||
@pytest.fixture | ||
def app(self, Application): | ||
return Application() | ||
|
||
@pytest.fixture | ||
def custom_app(self, Application): | ||
class CustomApplication(Application): | ||
"""Some test docstring.""" | ||
|
||
return CustomApplication() | ||
|
||
@pytest.fixture | ||
def custom_app_no_docs(self, Application): | ||
class CustomApplication(Application): | ||
pass | ||
|
||
return CustomApplication() | ||
|
||
def test_import(self, app): | ||
assert app.__doc__.startswith("`Outlook.Application`") | ||
|
||
def test_custom_import(self, custom_app): | ||
assert custom_app.__doc__.startswith("Some test docstring.") | ||
|
||
def test_custom_import_no_docs(self, custom_app_no_docs): | ||
assert custom_app_no_docs.__doc__.startswith("`Outlook.Application`") |
Oops, something went wrong.