File: test_config.py

package info (click to toggle)
python-sepaxml 2.6.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: python: 3,951; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import pytest

from sepaxml import SepaTransfer


def test_valid_config():
    return SepaTransfer({
        "name": "TestCreditor",
        "IBAN": "NL50BANK1234567890",
        "BIC": "BANKNL2A",
        "batch": True,
        "currency": "EUR"
    })


def test_invalid_config():
    with pytest.raises(Exception):
        return SepaTransfer({
            "name": "TestCreditor",
            "BIC": "BANKNL2A",
            "batch": True,
            "currency": "EUR"
        })