Skip to content

Fixture Overhaul #24

@jfear

Description

@jfear

@daler I have played with different options trying to get preseq tests to pass with no luck. The tests work with another BAM that I had laying around. I think the best solution is to generate a larger FASTQ file.

This is a good opportunity to move from downloading to generating files on the fly using the fixture interface. We could then have a "big_bam" fixture that would write a larger fastq file, etc.

If you agree this is the right approach there are two big questions.

  1. Where should fixtures live. I played with this sum and fixtures can be imported as any other module. So theoretically we could simply build another module (or add to lcdblib) a fixtures.py and import that into test from module.fixtures import *

  2. How should we generate files. We could either use wrappers or hard code things themselves. Both methods have advantages and disadvantages.

    • Wrappers are nice because they are already set up (i.e. code and conda envs), but to use fixtures in other modules we would have to make this repository pip installable; also testing wrappers using test files generated by wrappers seems a little strange.
    • Hardcoded would be more portable, but then we would have to deal with environments and write all of the commands outs which seems silly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions