Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

sub _build_description { "Testing current weather result" }
has request_obj => (
lazy => 1,
is => 'ro',
default => sub {
Weather::OpenWeatherMap::Request->new_for(
Current =>
api_key => 'abcd',
tag => 'foo',
location => 'Manchester, NH',
)
},
);
has result_obj => (
lazy => 1,
is => 'ro',
default => sub {
my ($self) = @_;
Weather::OpenWeatherMap::Result->new_for(
Current =>
request => $self->request_obj,
json => $self->mock_json,
)
},
);
has mock_json => (
lazy => 1,
is => 'ro',
default => sub { shift->get_mock_json('current') },
);
use lib 't/inc';
run_me;
done_testing