|
12 | 12 | LinkableContract, |
13 | 13 | ) |
14 | 14 | from ethpm.exceptions import ( |
15 | | - PyEthPMException, |
| 15 | + EthPMException, |
16 | 16 | ) |
17 | 17 | from web3 import Web3 |
18 | 18 | from web3.pm import ( |
@@ -60,25 +60,25 @@ def test_pm_set_custom_registry(empty_sol_registry, fresh_w3): |
60 | 60 |
|
61 | 61 | @pytest.mark.xfail(reason="Need to properly add authorization as of 8/10/2022") |
62 | 62 | def test_pm_must_set_registry_before_all_registry_interaction_functions(fresh_w3): |
63 | | - with pytest.raises(PyEthPMException): |
| 63 | + with pytest.raises(EthPMException): |
64 | 64 | fresh_w3.pm.release_package( |
65 | 65 | "package", "1.0.0", "ipfs://QmcxvhkJJVpbxEAa6cgW3B6XwPJb79w9GpNUv2P2THUzZR" |
66 | 66 | ) |
67 | | - with pytest.raises(PyEthPMException): |
| 67 | + with pytest.raises(EthPMException): |
68 | 68 | fresh_w3.pm.get_release_id_data(b"invalid_release_id") |
69 | | - with pytest.raises(PyEthPMException): |
| 69 | + with pytest.raises(EthPMException): |
70 | 70 | fresh_w3.pm.get_release_id("package", "1.0.0") |
71 | | - with pytest.raises(PyEthPMException): |
| 71 | + with pytest.raises(EthPMException): |
72 | 72 | fresh_w3.pm.get_release_data("package", "1.0.0") |
73 | | - with pytest.raises(PyEthPMException): |
| 73 | + with pytest.raises(EthPMException): |
74 | 74 | fresh_w3.pm.get_package("package", "1.0.0") |
75 | | - with pytest.raises(PyEthPMException): |
| 75 | + with pytest.raises(EthPMException): |
76 | 76 | fresh_w3.pm.get_all_package_names() |
77 | | - with pytest.raises(PyEthPMException): |
| 77 | + with pytest.raises(EthPMException): |
78 | 78 | fresh_w3.pm.get_all_package_releases("package") |
79 | | - with pytest.raises(PyEthPMException): |
| 79 | + with pytest.raises(EthPMException): |
80 | 80 | fresh_w3.pm.get_release_count("package") |
81 | | - with pytest.raises(PyEthPMException): |
| 81 | + with pytest.raises(EthPMException): |
82 | 82 | fresh_w3.pm.get_package_count() |
83 | 83 |
|
84 | 84 |
|
|
0 commit comments