Random Number Generator (RNG)
Other Documentation
NFT Operations in Python
Describing here the steps to verify the NFT_python on local or server machine.
Machine configuration : Local or server machine.

Step 1: Clone NFT_python binaries on machine

Project Url :

1
https://gitlab.com/PBSA/PeerplaysIO/tools-libs/python-peerplays/-/tree/nft
Copied!

Clone binaries on Machine :

1
git clone https://gitlab.com/PBSA/PeerplaysIO/tools-libs/python-peerplays.git
Copied!

Step: 2 Install virtual env on machine

Go to project :
1
cd python-peerplays
Copied!
Run:
1
virtualenv -p python3 env
Copied!

Step: 3 Install python requirements

Run:
1
source env/bin/activate
Copied!
then,
1
pip3 install -r requirements.txt
Copied!
And then,
1
pip3 install -r requirements-test.txt
Copied!

Step: 4 Run unit tests

Run:
1
python3 -m unittest tests/test_nft.py
Copied!
Expected result should be as below:
1
(env) [email protected]:~/python-peerplays$ python3 -m unittest tests/test_nft.py
2
Not broadcasting anything!
3
nft_metadata_create Success!
4
Not broadcasting anything!
5
nft_metadata_update Success!
6
Not broadcasting anything!
7
nft_mint Success!
8
Not broadcasting anything!
9
nft_safe_transfer_from Success!
10
Not broadcasting anything!
11
nft_approve Success!
12
Not broadcasting anything!
13
nft_set_approval_for_all Success!
14
All tests successful!
15
.
16
----------------------------------------------------------------------
17
Ran 1 test in 3.449s
18
19
OK
20
(env) [email protected]:~/python-peerplays$
21
22
Copied!
Cheers, all unit tests are passed and you successfully verify the NFT_python
Export as PDF
Copy link
Contents