dlab-projects / marketflow

Basic Python library for working with the TAQ (US Trade and Quote) dataset
http://marketflow.readthedocs.org/
BSD 2-Clause "Simplified" License
9 stars 11 forks source link

Create a basic test to understand pytest #7

Closed davclark closed 9 years ago

davclark commented 9 years ago

Something like:

  1. Create f(x) = x + 2
  2. Test that f(x) = x + 3
  3. See that test fails
  4. Fix the failing test

Feel free to do that in the repo... it'll help us move forward in having a test directory in the right place. Let's start with pytest.

juanshishido commented 9 years ago

@yangraymond how is this task progressing? If you need anything, I'd be more than happy help.

davclark commented 9 years ago

Note - I put some basic stuff in the repo, but I'd promised @yangraymond a bit more... so don't feel like you "dropped the ball" if you're not there yet. But do reach out!

yangraymond commented 9 years ago

This has been done. Jie and Juan helped me understand what sort of things need to be tested (e.g. ensure number of rows in original zip file must match number of rows in processed HDF5). I think it seems appropriate to get started in iPython (I've downloaded 20140206.zip from Box into my local directory) and I'll try to replicate some of the things Jie has done in his "Checking a chunk.ipynb" to better understand the Taq2Chunks class.