mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
Use pytest for itest (#161)
* Use pytest for itest * Use pytest for itests
This commit is contained in:
parent
e01b4de121
commit
3c13fa01af
5 changed files with 8 additions and 6 deletions
|
|
@ -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 && \
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
python3 test.py
|
||||
pytest -s tests
|
||||
|
|
|
|||
0
itests/tests/__init__.py
Normal file
0
itests/tests/__init__.py
Normal 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()
|
||||
|
|
@ -4,3 +4,4 @@ argparse
|
|||
googleapis-common-protos
|
||||
grpcio
|
||||
grpcio-tools
|
||||
pytest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue