Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Refatora descoberta de modelos #228

Merged
merged 5 commits into from
Oct 27, 2022

Conversation

thulio
Copy link
Collaborator

@thulio thulio commented Oct 27, 2022

  • ♻️ refactor(models): Rewriters model import logic
  • ♻️ refactor(models): AmoraModel.model_file_path() -> AmoraModel.path()
  • ♻️ refactor(models): AmoraModel.target_path(model_file_path) -> AmoraModel.target_path()
  • 🧪 tests(models): Improves test coverage

@thulio thulio self-assigned this Oct 27, 2022
@thulio thulio added the enhancement New feature or request label Oct 27, 2022
@thulio thulio changed the title refactor/models discovery refactor: Refatora descoberta de modelos Oct 27, 2022
@thulio thulio marked this pull request as ready for review October 27, 2022 12:51
eduwxyz
eduwxyz previously approved these changes Oct 27, 2022
@@ -125,4 +125,7 @@ def test_models_import_with_valid_table_reference_and_existing_destination_file_

assert result.exit_code == 0, result.stderr
assert output_path.read_text()
import sys

sys.path.insert(0, output_path.parent.as_posix())
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Como esse teste cria um arquivo temporário, esse módulo não está no sys.path

amora/models.py Outdated Show resolved Hide resolved
diogommartins and others added 2 commits October 27, 2022 10:44
Co-authored-by: Diogo Magalhães Machado <diogommartins.dev@gmail.com>
@diogommartins diogommartins merged commit 7faac83 into main Oct 27, 2022
@diogommartins diogommartins deleted the refactor/models-discovery branch October 27, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants