Giter VIP home page Giter VIP logo

Comments (9)

hitz avatar hitz commented on August 23, 2024

ok I wrote some code to do this but don't want to expand test suite over the internet to use URIs. @sbooeshaghi how do you run tests locally?

from seqspec.

sbooeshaghi avatar sbooeshaghi commented on August 23, 2024

Hi, could you clarify what you mean by "read seqspec from URI"? Do mean something akin to

seqspec print http://myurl.com/customspec.yaml

?

from seqspec.

sbooeshaghi avatar sbooeshaghi commented on August 23, 2024

Also @detrout setup the testing framework and maybe can comment a bit about it and how to effectively write tests for new functionality.

from seqspec.

detrout avatar detrout commented on August 23, 2024

You could either use a mocking library
https://pypi.org/project/requests-mock/

or alternatively launch a local HTTP server instance to host a test seqspec.
https://docs.python.org/3/library/http.server.html
https://pytest-httpserver.readthedocs.io/en/latest/

from seqspec.

hitz avatar hitz commented on August 23, 2024

seqspec print http://myurl.com/customspec.yaml

No, not the seqspec file itself, but rather the the references within it to the fastqs and index files. Ha, which means I think I modified the wrong function.

from seqspec.

detrout avatar detrout commented on August 23, 2024

Ben asked for test documentation in slack, this look good enough for a pull request?

+Test can be run with
+```bash
+tox
+```
+Which will install pytest and pytest-cov, but requires you have already
+installed tox or
+
+```bash
+pytest --cov=seqspec
+```
+which requires that you install pytest and pytest-cov.
+
+

from seqspec.

hitz avatar hitz commented on August 23, 2024

those should be in dev-requirements.txt right?

from seqspec.

detrout avatar detrout commented on August 23, 2024

Yes, the package dependencies are listed in dev-requirements.

Though maybe it doesn't hurt to give people the option to ignore pip install -r dev-requirements (In case they forget it's there. like me)

from seqspec.

sbooeshaghi avatar sbooeshaghi commented on August 23, 2024

onlists can now be supplied a uri

IGVF/seqspec@242cdf0

from seqspec.

Related Issues (20)

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.