Re: [Mojolicious] Mojolicious::Plugin::Config and Test::Mojo

2020-04-22 Thread Stefan Adams
This worked very well, thanks again!!

On Tue, Apr 21, 2020 at 11:23 AM Stefan Adams  wrote:

> Very interesting approach to addressing the issue, thank you for sharing!
>
> On Tue, Apr 21, 2020 at 10:38 AM Илья  wrote:
>
>> I do it that way (pretty ugly, i know), but agree, it's annoying and I'll
>> be much happier if Mojolicious::Plugin::Config will do deep merge
>>
>> my $t = Test::Mojo->new('App');
>>
>> my $config = $t->app->config;
>>
>> ... do something with config;
>>
>> undef $t;
>>
>> $t = Test::Mojo->new('App', $config);
>>
>> ... do tests
>> 21.04.2020 17:37, Stefan Adams пишет:
>>
>> Test::Mojo allows setting the config at initialization, but the way
>> Mojolicious::Plugin::Config works, that doesn't allow the programmed
>> defaults to get picked up, which means that it is necessary to define a
>> complete configuration during testing.  Is that more desirable than
>> allowing the defaults to get picked up during testing?
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Mojolicious" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to mojolicious+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQzm63SW_9a0xDH_AkhQXaVBB3T-WRa77PaUgac2Q-6Pg%40mail.gmail.com
>> 
>> .
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Mojolicious" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to mojolicious+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/mojolicious/3ba96f41-4a6e-c55c-907c-75bf0fcafdc6%40gmail.com
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFS8CRnfAV-y6eGipS5%3DrJ1U%3DyX3QDJ%2BfXZ_HzUcTBxxcA%40mail.gmail.com.


Re: [Mojolicious] Mojolicious::Plugin::Config and Test::Mojo

2020-04-21 Thread Stefan Adams
Very interesting approach to addressing the issue, thank you for sharing!

On Tue, Apr 21, 2020 at 10:38 AM Илья  wrote:

> I do it that way (pretty ugly, i know), but agree, it's annoying and I'll
> be much happier if Mojolicious::Plugin::Config will do deep merge
>
> my $t = Test::Mojo->new('App');
>
> my $config = $t->app->config;
>
> ... do something with config;
>
> undef $t;
>
> $t = Test::Mojo->new('App', $config);
>
> ... do tests
> 21.04.2020 17:37, Stefan Adams пишет:
>
> Test::Mojo allows setting the config at initialization, but the way
> Mojolicious::Plugin::Config works, that doesn't allow the programmed
> defaults to get picked up, which means that it is necessary to define a
> complete configuration during testing.  Is that more desirable than
> allowing the defaults to get picked up during testing?
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mojolicious+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQzm63SW_9a0xDH_AkhQXaVBB3T-WRa77PaUgac2Q-6Pg%40mail.gmail.com
> 
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mojolicious+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mojolicious/3ba96f41-4a6e-c55c-907c-75bf0fcafdc6%40gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFRUzacNqx4V%2BNRkO-KT_GUQpFgHXrfXm%2BD-LX4WyKiayg%40mail.gmail.com.


Re: [Mojolicious] Mojolicious::Plugin::Config and Test::Mojo

2020-04-21 Thread Илья
I do it that way (pretty ugly, i know), but agree, it's annoying and 
I'll be much happier if Mojolicious::Plugin::Config will do deep merge


my $t = Test::Mojo->new('App');

my $config = $t->app->config;

... do something with config;

undef $t;

$t = Test::Mojo->new('App', $config);

... do tests

21.04.2020 17:37, Stefan Adams пишет:
Test::Mojo allows setting the config at initialization, but the way 
Mojolicious::Plugin::Config works, that doesn't allow the programmed 
defaults to get picked up, which means that it is necessary to define 
a complete configuration during testing.  Is that more desirable than 
allowing the defaults to get picked up during testing?

--
You received this message because you are subscribed to the Google 
Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to mojolicious+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQzm63SW_9a0xDH_AkhQXaVBB3T-WRa77PaUgac2Q-6Pg%40mail.gmail.com 
.


--
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/3ba96f41-4a6e-c55c-907c-75bf0fcafdc6%40gmail.com.


[Mojolicious] Mojolicious::Plugin::Config and Test::Mojo

2020-04-21 Thread Stefan Adams
Test::Mojo allows setting the config at initialization, but the way
Mojolicious::Plugin::Config works, that doesn't allow the programmed
defaults to get picked up, which means that it is necessary to define a
complete configuration during testing.  Is that more desirable than
allowing the defaults to get picked up during testing?

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFQzm63SW_9a0xDH_AkhQXaVBB3T-WRa77PaUgac2Q-6Pg%40mail.gmail.com.