Skip to main content

No project description provided

Project description

KSEF utils

Installing package from source

$ cd ksef-utils
$ pip install -e .

Run tests

$ mkvirtualenv ksef
(ksef) $ pip install -r requirements.txt
(ksef) $ pytest -svvv

Set up secrets

Log in to [https://ksef-test.mf.gov.pl/web/] and generate your individual KSEF_TOKEN.

#!/bin/bash

export KSEF_ENV="test"
export KSEF_TOKEN="..."
export KSEF_NIP="..."

OpenAPI

/openapi/gtw/svc/api/KSeF-common.yaml
/openapi/gtw/svc/api/KSeF-batch.yaml
/openapi/gtw/svc/api/KSeF-online.yaml

Marks

Run all e2e/functional/current tests

$ pytest -svvv tests/test_ksef.py -m "e2e and not ignore"
$ pytest -svvv tests/test_ksef.py -m "functional and not ignore"
$ pytest -svvv tests/test_ksef.py -m "current and not ignore"
$ ./run_tests.sh

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

ksef-utils-1.0.tar.gz (23.0 kB view hashes)

Uploaded Source

Built Distribution

ksef_utils-1.0-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

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