Skip to content

Commit

Permalink
fix: Generate dummy data using faker (#466)
Browse files Browse the repository at this point in the history
* Replace `User` and `Keypair` to dummy using `faker`
  • Loading branch information
rapsealk committed Jun 14, 2022
1 parent 7caf2e7 commit fe047c6
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 289 deletions.
1 change: 1 addition & 0 deletions changes/466.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Generate dummy data for test cases using `faker`.
78 changes: 50 additions & 28 deletions python.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
// "coloredlogs~=15.0",
// "cryptography>=2.8",
// "etcetra~=0.1.6",
// "faker~=13.12.0",
// "graphene~=2.1.9",
// "humanize>=3.1.0",
// "janus>=0.6.1",
Expand Down Expand Up @@ -1248,6 +1249,27 @@
"requires_python": ">=3.9",
"version": "0.1.6"
},
{
"artifacts": [
{
"algorithm": "sha256",
"hash": "0122b75e7960cbb1e2bbbf10ef9b8c183377878e38466854953539c6d822e7c0",
"url": "https://files.pythonhosted.org/packages/5a/65/c0aabfe3343b1699bc7cddcfbfba60177b1ac47bea44f5b5331a15c4d9c9/Faker-13.12.1-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "fb95f956bac59c90f54543919d5c5ef41625e12a0773e5aa08c9b9c62ba58fb3",
"url": "https://files.pythonhosted.org/packages/b9/0f/e73c16b978961ef519982420b9c2827c8efcb814593d95965999409858e8/Faker-13.12.1.tar.gz"
}
],
"project_name": "faker",
"requires_dists": [
"python-dateutil>=2.4",
"typing-extensions>=3.10.0.2; python_version < \"3.8\""
],
"requires_python": ">=3.6",
"version": "13.12.1"
},
{
"artifacts": [
{
Expand Down Expand Up @@ -1340,21 +1362,23 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "349ac49b18b01019453cc99c11c92ed772739778c92f184002b7ab3a5b7ac77d",
"url": "https://files.pythonhosted.org/packages/fc/04/ea9a945a6fbd7f7f977fcf7e300a715f1635939e5daf141b95068abaa5ec/google_auth-2.6.6-py2.py3-none-any.whl"
"hash": "df549a1433108801b11bdcc0e312eaf0d5f0500db42f0523e4d65c78722e8475",
"url": "https://files.pythonhosted.org/packages/81/1f/f2e98da9ccf8f94bddecd690dbf2defb6244011874e3b523aa397887d8a9/google_auth-2.7.0-py2.py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "1ba4938e032b73deb51e59c4656a00e0939cf0b1112575099f136babb4563312",
"url": "https://files.pythonhosted.org/packages/fd/8c/3c24a436775d6582effe4ecaf33b2562e6a7f0cbc647a293c764c5eac9ee/google-auth-2.6.6.tar.gz"
"hash": "8a954960f852d5f19e6af14dd8e75c20159609e85d8db37e4013cc8c3824a7e1",
"url": "https://files.pythonhosted.org/packages/44/f3/4ee51a2f7d1c262e8bac333338479006b556f97ef9622e81c73460ad72a2/google-auth-2.7.0.tar.gz"
}
],
"project_name": "google-auth",
"requires_dists": [
"aiohttp<4.0.0dev,>=3.6.2; python_version >= \"3.6\" and extra == \"aiohttp\"",
"cachetools<6.0,>=2.0.0",
"cryptography==36.0.2; extra == \"enterprise_cert\"",
"enum34>=1.1.10; python_version < \"3.4\"",
"pyasn1-modules>=0.2.1",
"pyopenssl==22.0.0; extra == \"enterprise_cert\"",
"pyopenssl>=20.0.0; extra == \"pyopenssl\"",
"pyu2f>=0.1.5; extra == \"reauth\"",
"requests<3.0.0dev,>=2.20.0; extra == \"aiohttp\"",
Expand All @@ -1363,7 +1387,7 @@
"six>=1.9.0"
],
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"version": "2.6.6"
"version": "2.7"
},
{
"artifacts": [
Expand Down Expand Up @@ -2786,29 +2810,26 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d",
"url": "https://files.pythonhosted.org/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl"
"hash": "bc7861137fbce630f17b03d3ad02ad0bf978c844f3536d0edda6499dafce2b6f",
"url": "https://files.pythonhosted.org/packages/41/5b/2209eba8133fc081d3ffff02e1f6376e3117e52bb16f674721a83e67e68e/requests-2.28.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61",
"url": "https://files.pythonhosted.org/packages/60/f3/26ff3767f099b73e0efa138a9998da67890793bfa475d8278f84a30fec77/requests-2.27.1.tar.gz"
"hash": "d568723a7ebd25875d8d1eaf5dfa068cd2fc8194b2e483d7b1f7c81918dbec6b",
"url": "https://files.pythonhosted.org/packages/e9/23/384d9953bb968731212dc37af87cb75a885dc48e0615bd6a303577c4dc4b/requests-2.28.0.tar.gz"
}
],
"project_name": "requests",
"requires_dists": [
"PySocks!=1.5.7,>=1.5.6; extra == \"socks\"",
"certifi>=2017.4.17",
"chardet<5,>=3.0.2; extra == \"use_chardet_on_py3\"",
"chardet<5,>=3.0.2; python_version < \"3\"",
"charset-normalizer~=2.0.0; python_version >= \"3\"",
"idna<3,>=2.5; python_version < \"3\"",
"idna<4,>=2.5; python_version >= \"3\"",
"urllib3<1.27,>=1.21.1",
"win-inet-pton; (sys_platform == \"win32\" and python_version == \"2.7\") and extra == \"socks\""
"charset-normalizer~=2.0.0",
"idna<4,>=2.5",
"urllib3<1.27,>=1.21.1"
],
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"version": "2.27.1"
"requires_python": "<4,>=3.7",
"version": "2.28"
},
{
"artifacts": [
Expand Down Expand Up @@ -2973,13 +2994,13 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "68e45d17c9281ba25dc0104eadd2647172b3472d9e01f911efa57965e8d51a36",
"url": "https://files.pythonhosted.org/packages/e9/1c/ec080fde54ab30a738c92f794eab7f5d2f354f2b619ee95b2efe353e0766/setuptools-62.3.2-py3-none-any.whl"
"hash": "5a844ad6e190dccc67d6d7411d119c5152ce01f7c76be4d8a1eaa314501bba77",
"url": "https://files.pythonhosted.org/packages/d0/12/412167a1f80290555c557a556fb1fc294a6e889924fcf2b2db3a789b11a4/setuptools-62.4.0-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "a43bdedf853c670e5fed28e5623403bad2f73cf02f9a2774e91def6bda8265a7",
"url": "https://files.pythonhosted.org/packages/4a/25/ec29a23ef38b9456f9965c57a9e1221e6c246d87abbf2a31158799bca201/setuptools-62.3.2.tar.gz"
"hash": "bf8a748ac98b09d32c9a64a995a6b25921c96cc5743c1efa82763ba80ff54e91",
"url": "https://files.pythonhosted.org/packages/0c/f0/f11edc0efc7b00e26a28225621ce7584636bb3a76b1862829d42bc146fbf/setuptools-62.4.0.tar.gz"
}
],
"project_name": "setuptools",
Expand Down Expand Up @@ -3027,7 +3048,7 @@
"wheel; extra == \"testing-integration\""
],
"requires_python": ">=3.7",
"version": "62.3.2"
"version": "62.4"
},
{
"artifacts": [
Expand Down Expand Up @@ -3470,19 +3491,19 @@
"artifacts": [
{
"algorithm": "sha256",
"hash": "18f6856a7df44fc7a292c2d73093908333e5f7cb858667b8cbefc8ed1e91942e",
"url": "https://files.pythonhosted.org/packages/13/d4/ee6b9044aac19e9a3e0463acc0b6c062db54d70294d1885de492c0c399ad/types_six-1.16.15-py3-none-any.whl"
"hash": "b40078231175423affc00dd0cbb127a5a2bf3dee915890a47947ebc1ab25eee7",
"url": "https://files.pythonhosted.org/packages/b1/66/eee9592ecb7ba62aee8572c4a498342b9f3c78a18787b1aebca426aa66f3/types_six-1.16.16-py3-none-any.whl"
},
{
"algorithm": "sha256",
"hash": "d244f0537dab0d0570a5bc6f8a60c4da7f0546d960a8677520e6bff214a64fb8",
"url": "https://files.pythonhosted.org/packages/1c/69/1cb7e70583221b1f42147d5d59e43a230e84cebf25e774021a12dfb713fa/types-six-1.16.15.tar.gz"
"hash": "0bfbea0ea5780d861f9deab9053e4809f586f5fb3ef0257ce30b938772a4d09c",
"url": "https://files.pythonhosted.org/packages/a2/45/d4d0eba2a6c3b838c0fa1d07fb3d358bca2a3f17d0c4e367ae59086936ec/types-six-1.16.16.tar.gz"
}
],
"project_name": "types-six",
"requires_dists": [],
"requires_python": null,
"version": "1.16.15"
"version": "1.16.16"
},
{
"artifacts": [
Expand Down Expand Up @@ -3803,7 +3824,7 @@
"platform_tag": [
"cp310",
"cp310",
"manylinux_2_31_aarch64"
"manylinux_2_31_x86_64"
]
}
],
Expand Down Expand Up @@ -3842,6 +3863,7 @@
"coloredlogs~=15.0",
"cryptography>=2.8",
"etcetra~=0.1.6",
"faker~=13.12.0",
"graphene~=2.1.9",
"humanize>=3.1.0",
"janus>=0.6.1",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ coloredlogs~=15.0
colorama>=0.4.4
cryptography>=2.8
etcetra~=0.1.6
faker~=13.12.0
humanize>=3.1.0
graphene~=2.1.9
janus>=0.6.1
Expand Down

0 comments on commit fe047c6

Please sign in to comment.