Commit graph

20 commits

Author SHA1 Message Date
Jonathan Zernik
4c71be584a
Add test for set sent offer paid (#1698)
* Add test for set sent offer paid

* Add test for set sent offer not paid
2021-10-23 00:26:04 -07:00
Jonathan Zernik
3fc34c8965
Add test for set received offer paid db method (#1678) 2021-10-22 17:16:37 -07:00
Jonathan Zernik
f4a317f571
Add unit test for get address squeaks method of db (#1637)
* Add unit test for get address squeaks method of db

* Add test for get search entries method of db

* Add tests for get ancestor squeaks method of db

* Add tests for get reply squeaks method of db
2021-10-18 09:51:00 -07:00
Jonathan Zernik
fd6ad232e1
Add function to get private key from profile (#1619) 2021-10-16 19:35:24 -07:00
Jonathan Zernik
0e85b37f02
Add functions for optional types to msgs (#1618)
* Add functions for convert some optional types to msgs

* Add functions for convert optional squeak entry to msg

* Add function for convert optional peer to msg

* Add function for convert optional received offer to msg

* Add function for convert optional sent payment to msg

* Add function for convert optional squeak to detail msg

* Add function for convert optional connected peer to msg

* Use function for convert optional connected peer to msg in handler
2021-10-16 18:59:56 -07:00
Jonathan Zernik
47a68505b7
Add test for connected peer to msg (#1610) 2021-10-15 20:47:27 -07:00
Jonathan Zernik
11d8c8a1e3
Add test for payment summary to msg (#1609) 2021-10-15 20:22:38 -07:00
Jonathan Zernik
9c3e63dd2e
Add test for squeak detail to msg (#1604) 2021-10-15 17:57:25 -07:00
Jonathan Zernik
5a339605f3
Add fixture for offer to global conftest (#1601)
* Add fixture for offer to global conftest

* Remove old not none assertion
2021-10-15 17:02:53 -07:00
Jonathan Zernik
2a25ea6f1c
Add fixture for sent payment in global conftest (#1600) 2021-10-15 16:51:16 -07:00
Jonathan Zernik
84f7159d39
Add test for subscribe received payments (#1596)
* Add test for get received payments method of squeak core

* Add assertion on number of received payments in test.
2021-10-14 23:22:56 -07:00
Jonathan Zernik
d351613880
Add tests for squeak entry to message and profile to message (#1593)
* Add tests for squeak entry to message and profile to message

* Move fixtures for admin module to separate conftest

* Add test for peer to msg

* Use global fixture for peer_address in squeak core test

* Move common fixtures to global conftest

* Add fixture for received offer

* Add unit test for received offer to msg

* Add fixture for sent offer

* Rename received offer to msg function
2021-10-14 19:57:48 -07:00
Jonathan Zernik
dd927036a5
Add block_info fixture to global conftest (#1584) 2021-10-12 19:00:44 -07:00
Jonathan Zernik
3dcc2681d5
Simplify unit tests for interests (#1579) 2021-10-12 15:11:38 -07:00
Jonathan Zernik
f49874c1e6
Improve squeak core tests (#1560)
* Use fixture for block in mock bitcoin client

* Simplify unit test for make squeak method

* Simplify make squeak method even more

* Added unit test for create offer

* Add TODO comment for preimage fixture
2021-10-10 23:48:06 -07:00
Jonathan Zernik
4ca835b2fb
Replace use_tor field with network in peer address (#1558)
* Replace use_tor field with network in peer address

* Got itest passing with network column in db.

* Got frontend working with network (ipv4 or torv3) configurable

* Fix go to peer address page navigation from sent payment and received payment
2021-10-10 21:00:56 -07:00
Jonathan Zernik
2e0fc25051
Got unit test working for insert and retrieve squeak in db (#1488) 2021-10-03 20:39:24 -07:00
Jonathan Zernik
46dd7f5287
Use separate modules client server (#1)
* Put server in separate module

* Fix flask app name for server in submodule

* Added common module
2020-02-29 18:30:52 -08:00
Jonathan Zernik
35ed57cc8b Rename to squeaknode 2020-02-28 19:13:19 -08:00
Jonathan Zernik
cea55d63bd Initial commit 2020-02-22 19:33:40 -08:00