Use pytest for itest (#161)

* Use pytest for itest

* Use pytest for itests
This commit is contained in:
Jonathan Zernik 2020-07-28 19:49:44 -07:00 committed by GitHub
parent e01b4de121
commit 3c13fa01af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 6 deletions

View file

@ -16,7 +16,8 @@ WORKDIR /app
RUN git clone https://github.com/googleapis/googleapis.git
COPY proto ./proto
COPY install-rpc.sh itests/test.sh itests/test.py squeakserver/common/lnd_lightning_client.py ./
COPY install-rpc.sh itests/test.sh squeakserver/common/lnd_lightning_client.py ./
COPY itests/tests ./tests
# Install the gRPC files.
RUN chmod +x install-rpc.sh && \

View file

@ -1,3 +1,3 @@
#!/bin/bash
python3 test.py
pytest -s tests

0
itests/tests/__init__.py Normal file
View file

View file

@ -92,7 +92,7 @@ def string_to_hex(s):
return bytes.fromhex(s)
def run():
def test_buy_squeak():
# Set the network to simnet for itest.
SelectParams("mainnet")
@ -471,6 +471,6 @@ def run():
)
if __name__ == "__main__":
logging.basicConfig()
run()
# if __name__ == "__main__":
# logging.basicConfig()
# run()

View file

@ -4,3 +4,4 @@ argparse
googleapis-common-protos
grpcio
grpcio-tools
pytest