Skip to content

Commit

Permalink
Merge pull request #11 from greschd/rename_module
Browse files Browse the repository at this point in the history
Rename module to 'aiida-mock-codes'
  • Loading branch information
greschd committed Feb 24, 2020
2 parents 78a042d + d944332 commit a272cca
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ repos:
(?x)^(
setup.json|
utils/validate_version_consistency.py|
aiida_pytest_mock_codes/__init__.py
aiida_mock_codes/__init__.py
)$
pass_filenames: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# aiida-pytest-mock-codes
# aiida-mock-codes

Defines a pytest plugin for mocking AiiDA codes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@

def get_config() -> ty.Dict[str, str]:
"""
Reads the configuration file ``.aiida-pytest-mock-codes.yml``. The
Reads the configuration file ``.aiida-mock-codes.yml``. The
file is searched in the current working directory and all its parent
directories.
"""
cwd = pathlib.Path(os.getcwd())
config: ty.Dict[str, str]
for dir_path in [cwd, *cwd.parents]:
config_file_path = (dir_path / '.aiida-pytest-mock-codes.yml')
config_file_path = (dir_path / '.aiida-mock-codes.yml')
if config_file_path.exists():
with open(config_file_path) as config_file:
config = yaml.load(config_file)
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aiida-pytest-mock-codes",
"name": "aiida-mock-codes",
"version": "0.0.0a1",
"url": "https://aiida-pytest-mock-codes.readthedocs.io/",
"url": "https://aiida-mock-codes.readthedocs.io/",
"description": "Pytest plugin for mocking AiiDA codes.",
"author": "Dominik Gresch",
"author_email": "greschd@gmx.ch",
Expand Down Expand Up @@ -54,7 +54,7 @@
},
"entry_points": {
"console_scripts": [
"aiida-mock-code=aiida_pytest_mock_codes._cli:run"
"aiida-mock-code=aiida_mock_codes._cli:run"
]
}
}
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
Configuration file for pytest tests of aiida-pytest-mock-codes.
Configuration file for pytest tests of aiida-mock-codes.
"""

pytest_plugins = ['aiida.manage.tests.pytest_fixtures', 'aiida_pytest_mock_codes'] # pylint: disable=invalid-name
pytest_plugins = ['aiida.manage.tests.pytest_fixtures', 'aiida_mock_codes'] # pylint: disable=invalid-name
2 changes: 1 addition & 1 deletion utils/validate_version_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
ROOT_DIR = os.path.join(SCRIPT_DIR, os.path.pardir)

# Get the __init__.py version number
with open(os.path.join(ROOT_DIR, 'aiida_pytest_mock_codes/__init__.py')) as f:
with open(os.path.join(ROOT_DIR, 'aiida_mock_codes/__init__.py')) as f:
MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)"
VERSION_INIT = re.search(MATCH_EXPR, f.read()).group(2).strip() # type: ignore

Expand Down

0 comments on commit a272cca

Please sign in to comment.