Skip to main content

Mocking SAP Data Intelligence api for local testing

Project description

Mock SAP Data Intelligence api

This small package can be used to mock the api-package of SAP Data Intelligence in order to develop an operator locally. It is assumed that the working directory has the SAP Data Intelligence vflow-structure (github-pull) and the Python-operator has been created previously with the 'Create Operator'-wizzard of the modeler. For details a blog will be published on SAP Community in May 2021.

To use the this add at the beginning of your script the following codelines:

try:
    api
except NameError:
    from utils.di_local_test import *

The following api attributes will be mocked:

  • config: with the attributes read from the operators.json-file
  • Message: creating a Message with attributes and body as attributes
  • send: prints the content of the message that is send to the port. Only the message data types `string' and 'message' are currently supported.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mock_di_api-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file mock_di_api-0.0.3.tar.gz.

File metadata

  • Download URL: mock_di_api-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.0

File hashes

Hashes for mock_di_api-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7e9066c86ddcfc8d93f802e063366ccea2c9ded4a13860fcd5663a7e15b44c14
MD5 62b61c000835b5a9e1489864103c1730
BLAKE2b-256 cacda194057b7632b435afd2d3fc459a2cea993ba0ed3da63ffe20ee91a710d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page