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

Base-python: fix bug when reading schemas from shared/ folder #3127

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

sherifnada
Copy link
Contributor

No description provided.

@sherifnada
Copy link
Contributor Author

sherifnada commented Apr 29, 2021

/publish connector=bases/base-python

🕑 bases/base-python https://github.com/airbytehq/airbyte/actions/runs/795238398
✅ bases/base-python https://github.com/airbytehq/airbyte/actions/runs/795238398

@sherifnada sherifnada changed the title fix bug in schema helpers Base-python: fix bug in schema helpers Apr 29, 2021
@sherifnada sherifnada changed the title Base-python: fix bug in schema helpers Base-python: fix bug when reading schemas from shared/ folder Apr 29, 2021
@sherifnada sherifnada merged commit 80ce46f into master Apr 29, 2021
@sherifnada sherifnada deleted the sherif/fix-schema-helpers-bug branch April 29, 2021 07:38
@@ -38,8 +38,7 @@ def __init__(self, shared_schemas_path: str):

@staticmethod
def _load_shared_schema_refs(shared_schemas_path: str):
shared_file_names = [f for f in os.scandir(shared_schemas_path) if f.isfile()]

shared_file_names = [f.name for f in os.scandir(shared_schemas_path) if f.is_file()]
Copy link
Contributor

Choose a reason for hiding this comment

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

Any way you could have some unit tests for these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, top priority after refactoring the package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants