Home
DevCentral
Search
Configure Global Search
Log In
Transactions
T1876
Change Details
Change Details
Old
New
Diff
The crate //mockito// seems to have a rather fast paced development for deprecation cycle, as code from January is already broken. **Version 0.32.5 :: Deprecations ** ``` $ cargo test Updating crates.io index Downloaded mockito v0.32.5 Downloaded 1 crate (43.0 KB) in 0.39s Compiling mockito v0.32.5 Compiling opendatasoft-explore-api v0.1.0 (.../dev/nasqueron/datasources/opendatasoft-explore-api) warning: use of deprecated function `mockito::mock`: Use `Server::mock` instead --> opendatasoft-explore-api/tests/requests_test.rs:6:15 | 6 | use mockito::{mock, Mock}; | ^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `mockito::server_url`: Use `Server::url` instead --> opendatasoft-explore-api/tests/requests_test.rs:19:44 | 19 | static ref MOCK_URL: String = mockito::server_url(); | ^^^^^^^^^^ warning: use of deprecated function `mockito::mock`: Use `Server::mock` instead --> opendatasoft-explore-api/tests/requests_test.rs:36:5 | 36 | mock("GET", url) | ^^^^ warning: `opendatasoft-explore-api` (test "requests_test") generated 3 warnings Finished test [unoptimized + debuginfo] target(s) in 5.28s Running unittests src/main.rs (target/debug/deps/fantoir_datasource-d62d3abe561d95fe) ``` **Version 1.0 :: It has been deprecated ** ``` $ cargo test Compiling atty v0.2.14 Compiling assert-json-diff v2.0.2 Compiling similar v2.2.1 Compiling fantoir-datasource v0.1.0 (/.../dev/nasqueron/datasources/fantoir-datasource) Compiling colored v2.0.0 Compiling mockito v1.0.2 Compiling opendatasoft-explore-api v0.1.0 (.../dev/nasqueron/datasources/opendatasoft-explore-api) error[E0425]: cannot find function `server_url` in crate `mockito` --> opendatasoft-explore-api/tests/requests_test.rs:19:44 | 19 | static ref MOCK_URL: String = mockito::server_url(); | ^^^^^^^^^^ not found in `mockito` error[E0603]: module `mock` is private --> opendatasoft-explore-api/tests/requests_test.rs:6:15 | 6 | use mockito::{mock, Mock}; | ^^^^ private module | note: the module `mock` is defined here --> .../.cargo/registry/src/github.com-1ecc6299db9ec823/mockito-1.0.2/src/lib.rs:683:1 | 683 | mod mock; | ^^^^^^^^ ```
The crate //mockito// seems to have a rather fast paced development for deprecation cycle, as code from January is already broken if we want to upgrade from 0.x to 1.x. **Migration guide** //This task has been identified as suitable to discover our codebase.// | **Repository** | rDS | | **Migration guide** | https://github.com/lipanski/mockito/releases/tag/1.0.0 | | **Current documentation** | https://docs.rs/mockito/latest/mockito/ | **Version 0.32.5 :: Deprecations ** ``` $ cargo test Updating crates.io index Downloaded mockito v0.32.5 Downloaded 1 crate (43.0 KB) in 0.39s Compiling mockito v0.32.5 Compiling opendatasoft-explore-api v0.1.0 (.../dev/nasqueron/datasources/opendatasoft-explore-api) warning: use of deprecated function `mockito::mock`: Use `Server::mock` instead --> opendatasoft-explore-api/tests/requests_test.rs:6:15 | 6 | use mockito::{mock, Mock}; | ^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `mockito::server_url`: Use `Server::url` instead --> opendatasoft-explore-api/tests/requests_test.rs:19:44 | 19 | static ref MOCK_URL: String = mockito::server_url(); | ^^^^^^^^^^ warning: use of deprecated function `mockito::mock`: Use `Server::mock` instead --> opendatasoft-explore-api/tests/requests_test.rs:36:5 | 36 | mock("GET", url) | ^^^^ warning: `opendatasoft-explore-api` (test "requests_test") generated 3 warnings Finished test [unoptimized + debuginfo] target(s) in 5.28s Running unittests src/main.rs (target/debug/deps/fantoir_datasource-d62d3abe561d95fe) ``` **Version 1.0 :: It has been deprecated ** ``` $ cargo test Compiling atty v0.2.14 Compiling assert-json-diff v2.0.2 Compiling similar v2.2.1 Compiling fantoir-datasource v0.1.0 (/.../dev/nasqueron/datasources/fantoir-datasource) Compiling colored v2.0.0 Compiling mockito v1.0.2 Compiling opendatasoft-explore-api v0.1.0 (.../dev/nasqueron/datasources/opendatasoft-explore-api) error[E0425]: cannot find function `server_url` in crate `mockito` --> opendatasoft-explore-api/tests/requests_test.rs:19:44 | 19 | static ref MOCK_URL: String = mockito::server_url(); | ^^^^^^^^^^ not found in `mockito` error[E0603]: module `mock` is private --> opendatasoft-explore-api/tests/requests_test.rs:6:15 | 6 | use mockito::{mock, Mock}; | ^^^^ private module | note: the module `mock` is defined here --> .../.cargo/registry/src/github.com-1ecc6299db9ec823/mockito-1.0.2/src/lib.rs:683:1 | 683 | mod mock; | ^^^^^^^^ ```
The crate //mockito// seems to have a rather fast paced development for deprecation cycle, as code from January is already broken
.
if we want to upgrade from 0.x to 1.x. **Migration guide** //This task has been identified as suitable to discover our codebase.// | **Repository** | rDS | | **Migration guide** | https://github.com/lipanski/mockito/releases/tag/1.0.0 | | **Current documentation** | https://docs.rs/mockito/latest/mockito/ |
**Version 0.32.5 :: Deprecations ** ``` $ cargo test Updating crates.io index Downloaded mockito v0.32.5 Downloaded 1 crate (43.0 KB) in 0.39s Compiling mockito v0.32.5 Compiling opendatasoft-explore-api v0.1.0 (.../dev/nasqueron/datasources/opendatasoft-explore-api) warning: use of deprecated function `mockito::mock`: Use `Server::mock` instead --> opendatasoft-explore-api/tests/requests_test.rs:6:15 | 6 | use mockito::{mock, Mock}; | ^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `mockito::server_url`: Use `Server::url` instead --> opendatasoft-explore-api/tests/requests_test.rs:19:44 | 19 | static ref MOCK_URL: String = mockito::server_url(); | ^^^^^^^^^^ warning: use of deprecated function `mockito::mock`: Use `Server::mock` instead --> opendatasoft-explore-api/tests/requests_test.rs:36:5 | 36 | mock("GET", url) | ^^^^ warning: `opendatasoft-explore-api` (test "requests_test") generated 3 warnings Finished test [unoptimized + debuginfo] target(s) in 5.28s Running unittests src/main.rs (target/debug/deps/fantoir_datasource-d62d3abe561d95fe) ``` **Version 1.0 :: It has been deprecated ** ``` $ cargo test Compiling atty v0.2.14 Compiling assert-json-diff v2.0.2 Compiling similar v2.2.1 Compiling fantoir-datasource v0.1.0 (/.../dev/nasqueron/datasources/fantoir-datasource) Compiling colored v2.0.0 Compiling mockito v1.0.2 Compiling opendatasoft-explore-api v0.1.0 (.../dev/nasqueron/datasources/opendatasoft-explore-api) error[E0425]: cannot find function `server_url` in crate `mockito` --> opendatasoft-explore-api/tests/requests_test.rs:19:44 | 19 | static ref MOCK_URL: String = mockito::server_url(); | ^^^^^^^^^^ not found in `mockito` error[E0603]: module `mock` is private --> opendatasoft-explore-api/tests/requests_test.rs:6:15 | 6 | use mockito::{mock, Mock}; | ^^^^ private module | note: the module `mock` is defined here --> .../.cargo/registry/src/github.com-1ecc6299db9ec823/mockito-1.0.2/src/lib.rs:683:1 | 683 | mod mock; | ^^^^^^^^ ```
Continue