-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow collection install if source is not yet a git repository (#144)
* Fix not a repo * Update pylint disable * chore: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Sort test file list --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8944ca0
commit affe940
Showing
6 changed files
with
291 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ cpart | |
cpath | ||
crepository | ||
csource | ||
excinfo | ||
fileh | ||
fqcn | ||
levelname | ||
|
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,29 @@ | ||
"""Fixtures for unit tests.""" | ||
|
||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
import pytest | ||
|
||
from ansible_dev_environment.output import Output | ||
from ansible_dev_environment.utils import TermFeatures | ||
|
||
|
||
if TYPE_CHECKING: | ||
from pathlib import Path | ||
|
||
|
||
@pytest.fixture() | ||
def output(tmp_path: Path) -> Output: | ||
"""Create an Output class object as fixture. | ||
|
||
:param tmp_path: App configuration object. | ||
""" | ||
return Output( | ||
log_file=str(tmp_path) + "ansible-creator.log", | ||
log_level="notset", | ||
log_append="false", | ||
term_features=TermFeatures(color=False, links=False), | ||
verbosity=0, | ||
) |
Oops, something went wrong.