-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
40 additions
and
44 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
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
from unittest.mock import patch | ||
from zero_to_one_hundred.factories.ztoh_factory import ZTOHFactory | ||
from zero_to_one_hundred.processors.done_section_processor import DoneSectionProcessor | ||
|
||
|
||
@patch("zero_to_one_hundred.factories.ztoh_factory.ZTOHFactory.get_processor") | ||
def test_process(get_config_map, get_factory, http_url): | ||
actual: DoneSectionProcessor =get_factory.get_processor([None, "done_section", http_url]) | ||
actual: DoneSectionProcessor = get_factory.get_processor( | ||
[None, "done_section", http_url] | ||
) | ||
for p in actual: | ||
p.process() |
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,9 +1,7 @@ | ||
from zero_to_one_hundred.processors.help_processor import HelpProcessor | ||
|
||
|
||
def test_process( | ||
get_factory | ||
): | ||
def test_process(get_factory): | ||
actual: HelpProcessor = get_factory.get_processor([None, "help"]) | ||
for p in actual: | ||
p.process() |
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 |
---|---|---|
@@ -1,14 +1,9 @@ | ||
|
||
from zero_to_one_hundred.factories.sb_factory_provider import SBFactoryProvider | ||
|
||
|
||
# pylint: disable=W0621 | ||
|
||
|
||
def test_pass( | ||
get_config_map, | ||
persist_fs, | ||
process_fs,get_factory | ||
): | ||
def test_pass(get_config_map, persist_fs, process_fs, get_factory): | ||
actual = SBFactoryProvider(persist_fs, process_fs) | ||
assert isinstance(actual.provide(), type(get_factory)) |
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