No, the actual problem is, that the secrets modules was not reloaded 
correctly and thus the tested SECOND_SECRET could not be found.
BUT the question is, why this is happening, because testing the same thing 
locally (under the same python version failing at travis) works like it 
should.

If you have some minutes to spare, please test it and tell me if you can 
reproduce the problem.



Am Montag, 5. Februar 2018 16:30:21 UTC+1 schrieb Matemática A3K:
>
>
>
> On Mon, Feb 5, 2018 at 12:23 PM, Andy <kaku...@gmail.com <javascript:>> 
> wrote:
>
>> Which line number are you referring to?
>> i didnt notice missing  vars.
>>
>
> got secret from environment variable (SECOND_SECRET)
> E
> Use these lines to initialize your secrets ..
> export SECRET_KEY="travis"
> E
>
> ...
>
> ======================================================================
> ERROR: test_export (django_secrets.tests.SecretTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/travis/build/kakulukia/django-secrets/django_secrets/tests.py", 
> line 32, in test_export
>     command.handle()
>   File 
> "/home/travis/build/kakulukia/django-secrets/django_secrets/management/commands/export_secrets.py",
>  line 15, in handle
>     print('export %s="%s"' % (key, getattr(secrets, key)))
> AttributeError: 'module' object has no attribute 'SECOND_SECRET'
>
>
>  
>
>>
>>
>> Am Montag, 5. Februar 2018 15:50:14 UTC+1 schrieb Matemática A3K:
>>>
>>>
>>>
>>> On Thu, Feb 1, 2018 at 9:58 AM, Andy <kaku...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> im trying to convince Travis to test my app:
>>>> https://github.com/kakulukia/django-secrets
>>>>
>>>> But its failing for all python3 versions. Because my system python 3 is 
>>>> 3.6.4 i just installed pyenv, created a 3.6.3 (latest python 3.6 at 
>>>> Travis) 
>>>> virtualenv and ran the tests. On my local system they are working, but 
>>>> travis reports problems and i dont really know how to fix them when the 
>>>> tests are not failing locally.
>>>>
>>>> Does sombody have a clue, whats wrong here?
>>>>
>>>> Weird evough: now that i pushed a new commit (not relating python code 
>>>> though) two confgigurations do pass the tests:
>>>> https://travis-ci.org/kakulukia/django-secrets/
>>>>
>>>
>>> This is more like a Travis problem, according the log, the env vars are 
>>> not being picked by it:
>>> https://travis-ci.org/kakulukia/django-secrets/jobs/336123060
>>>
>>>  
>>>
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to django-users...@googlegroups.com.
>>>> To post to this group, send email to django...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/django-users/01cb4387-5ad1-4d24-9ae4-42a2b83c7ab1%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/01cb4387-5ad1-4d24-9ae4-42a2b83c7ab1%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/08261ca0-c0dd-4d70-9ce1-e8cb2e401059%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/08261ca0-c0dd-4d70-9ce1-e8cb2e401059%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f71c985d-365b-46b5-858e-985025590124%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to