Fix: Dependencies
This commit is contained in:
parent
6e5d358c73
commit
dde24b9739
@ -9,8 +9,8 @@ RUN apt install software-properties-common -y \
|
|||||||
RUN apt-get install -y --no-install-recommends \
|
RUN apt-get install -y --no-install-recommends \
|
||||||
python3.9 python3.9-distutils python3.9-dev \
|
python3.9 python3.9-distutils python3.9-dev \
|
||||||
python3.10 python3.10-distutils python3.10-dev \
|
python3.10 python3.10-distutils python3.10-dev \
|
||||||
python3.11 python3.10-distutils python3.10-dev \
|
python3.11 python3.11-distutils python3.11-dev \
|
||||||
python3.12 python3.10-distutils python3.10-dev \
|
python3.12 python3-setuptools python3.12-dev \
|
||||||
wget \
|
wget \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ dev-shell:
|
|||||||
docker run --rm -ti -v "$(PWD):/app" -w /app --name facho-cli facho bash
|
docker run --rm -ti -v "$(PWD):/app" -w /app --name facho-cli facho bash
|
||||||
|
|
||||||
test:
|
test:
|
||||||
docker run -t -v $(PWD):/app -w /app facho sh -c 'cd /app; python3.11 setup.py test'
|
docker run -t -v $(PWD):/app -w /app facho sh -c 'cd /app; python3.12 setup.py test'
|
||||||
|
|
||||||
tox:
|
tox:
|
||||||
docker run -it -v $(PWD)/:/app -w /app facho tox
|
docker run -it -v $(PWD)/:/app -w /app facho tox
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from facho import fe
|
|
||||||
|
|
||||||
|
from facho import fe
|
||||||
|
|
||||||
import helpers
|
import helpers
|
||||||
|
|
||||||
|
|
||||||
def test_xmlsigned_build(monkeypatch):
|
def test_xmlsigned_build(monkeypatch):
|
||||||
#openssl req -x509 -sha256 -nodes -subj "/CN=test" -days 1 -newkey rsa:2048 -keyout example.key -out example.pem
|
# openssl req -x509 -sha256 -nodes -subj "/CN=test" -days 1 -newkey rsa:2048 -keyout example.key -out example.pem
|
||||||
#openssl pkcs12 -export -out example.p12 -inkey example.key -in example.pem
|
# openssl pkcs12 -export -out example.p12 -inkey example.key -in example.pem
|
||||||
signer = fe.DianXMLExtensionSigner('./tests/example.p12')
|
signer = fe.DianXMLExtensionSigner('./tests/example.p12')
|
||||||
|
|
||||||
xml = fe.FeXML('Invoice',
|
xml = fe.FeXML('Invoice',
|
||||||
|
Loading…
Reference in New Issue
Block a user