-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Greenhouse: migrate to base image and increase test coverage (#…
…32397) Co-authored-by: pnilan <pnilan@users.noreply.github.com> Co-authored-by: ChristoGrab <christo.grab@gmail.com>
- Loading branch information
1 parent
ca028bb
commit 7aaaa06
Showing
8 changed files
with
204 additions
and
64 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
airbyte-integrations/connectors/source-greenhouse/Dockerfile
This file was deleted.
Oops, something went wrong.
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
12 changes: 5 additions & 7 deletions
12
airbyte-integrations/connectors/source-greenhouse/integration_tests/expected_records.jsonl
Large diffs are not rendered by default.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
airbyte-integrations/connectors/source-greenhouse/unit_tests/conftest.py
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,21 @@ | ||
# | ||
# Copyright (c) 2023 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
from unittest.mock import MagicMock, Mock | ||
|
||
import pytest | ||
from airbyte_cdk.sources.streams import Stream | ||
from source_greenhouse.components import GreenHouseSlicer, GreenHouseSubstreamSlicer | ||
|
||
|
||
@pytest.fixture | ||
def greenhouse_slicer(): | ||
date_time = "2022-09-05T10:10:10.000000Z" | ||
return GreenHouseSlicer(cursor_field=date_time, parameters={}, request_cursor_field=None) | ||
|
||
|
||
@pytest.fixture | ||
def greenhouse_substream_slicer(): | ||
parent_stream = MagicMock(spec=Stream) | ||
return GreenHouseSubstreamSlicer(cursor_field='cursor_field', stream_slice_field='slice_field', parent_stream=parent_stream, parent_key='parent_key', parameters={}, request_cursor_field=None) |
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