Co-authored-by: Sherif Nada <snadalive@gmail.com>
This commit is contained in:
@@ -1,5 +1,35 @@
|
||||
{
|
||||
"streams": [
|
||||
{
|
||||
"stream": {
|
||||
"name": "campaigns",
|
||||
"json_schema": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"is_abtest": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"supported_sync_modes": ["full_refresh"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"stream": {
|
||||
"name": "lists",
|
||||
|
||||
@@ -22,27 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
"""
|
||||
|
||||
import json
|
||||
import pkgutil
|
||||
|
||||
from airbyte_protocol import ConfiguredAirbyteCatalog, ConnectorSpecification
|
||||
from base_python_test import StandardSourceTestIface
|
||||
from base_python_test import DefaultStandardSourceTest
|
||||
|
||||
|
||||
class SourceSendgridStandardTest(StandardSourceTestIface):
|
||||
def get_spec(self) -> ConnectorSpecification:
|
||||
raw_spec = pkgutil.get_data(self.__class__.__module__.split(".")[0], "spec.json")
|
||||
return ConnectorSpecification.parse_obj(json.loads(raw_spec))
|
||||
|
||||
def get_config(self) -> object:
|
||||
return json.loads(pkgutil.get_data(self.__class__.__module__.split(".")[0], "config.json"))
|
||||
|
||||
def get_catalog(self) -> ConfiguredAirbyteCatalog:
|
||||
raw_catalog = pkgutil.get_data(self.__class__.__module__.split(".")[0], "configured_catalog.json")
|
||||
return ConfiguredAirbyteCatalog.parse_obj(json.loads(raw_catalog))
|
||||
|
||||
def setup(self) -> None:
|
||||
pass
|
||||
|
||||
def teardown(self) -> None:
|
||||
pass
|
||||
class SourceSendgridStandardTest(DefaultStandardSourceTest):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user