Giter Club home page Giter Club logo

comet-sensor's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

cyd-poolen

comet-sensor's Issues

Tests fail on Debian 8

python --version
Python 3.4.2
Distributor ID: Debian
Description:    Debian GNU/Linux 8.2 (jessie)
Release:    8.2
Codename:   jessie
py.test-3 tests/test_fetch.py 
========================================= test session starts =========================================
platform linux -- Python 3.4.2 -- py-1.4.25 -- pytest-2.6.3
collected 3 items 

tests/test_fetch.py ..F

============================================== FAILURES ===============================================
_____________________________________ test_fetch_twice_separated ______________________________________

args = ()
kw = {'freezer': <class 'support.freezer.<locals>.Freeze'>, 'runner': <support.runner.<locals>.PrintRunner object at 0x7f162f882400>}

    @functools.wraps(test)
    def wrapper(*args, **kw):
        httpretty.reset()
        httpretty.enable()
        try:
>           return test(*args, **kw)

/usr/local/lib/python3.4/dist-packages/httpretty/core.py:1063: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/support.py:41: in inner
    return func(*args, **kwargs)
tests/support.py:55: in inner
    func(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

runner = <support.runner.<locals>.PrintRunner object at 0x7f162f882400>
freezer = <class 'support.freezer.<locals>.Freeze'>

    @register_uris
    @isolated_filesystem
    def test_fetch_twice_separated(runner, freezer):
        """
        Here we want to make sure that the data deduplication of fetch is working all
        right, that no additional file is added if fetch is called within the same minute.
        """
        freezer.freeze(TEST_O_CLOCK)
        result = runner.invoke(cli, ['-v', '-d', TEMP_FOLDER, 'fetch', FIRST_URL])
        assert result.exit_code == 0
        assert len(glob.glob(TEMP_FOLDER + '*.csv')) == 1
        freezer.delta(minutes=30)
        result2 = runner.invoke(cli, ['-v', '-d', TEMP_FOLDER, 'fetch', SECOND_URL])
        assert result2.exit_code == 0
>       assert len(glob.glob(TEMP_FOLDER + '*.csv')) == 2
E       assert 1 == 2
E        +  where 1 = len(['./temp/2015-11-04_12:51:01.csv'])
E        +    where ['./temp/2015-11-04_12:51:01.csv'] = <function glob at 0x7f163037c158>(('./temp/' + '*.csv'))
E        +      where <function glob at 0x7f163037c158> = glob.glob

tests/test_fetch.py:48: AssertionError
---------------------------------------- Captured stdout call -----------------------------------------
Fetching data from http://export/export.csv and saving it in ./temp/2015-11-04_12:51:01.csvtemp
Rewriting treated CSV to: ./temp/2015-11-04_12:51:01.csv

Fetching data from http://export.1/export.csv and saving it in ./temp/2015-11-04_12:51:01.csvtemp
Rewriting treated CSV to: ./temp/2015-11-04_12:51:01.csv

================================= 1 failed, 2 passed in 0.20 seconds =================================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.