GithubHelp home page GithubHelp logo

Comments (6)

PieterjanMontens avatar PieterjanMontens commented on July 20, 2024 1

Absolutely !

I understand the long-term objective : let's keep it within django with pytest. The app has to provide a limited set of functionalities ("do one thing but do it well") : going full BDD would be a burden (I do recommend it for larger projects with multiple people which aren't all tech experts ;) )

I'm a poetry fan, I'll open an issue to discuss that part 👍

from arklet.

avdempsey avatar avdempsey commented on July 20, 2024 1

GitHub Actions is running. Next is adding tox to GitHub Actions and completing the code coverage.

from arklet.

avdempsey avatar avdempsey commented on July 20, 2024

Thank you for raising this issue. I agree 💯%

Internally we typically use pytest with pytest-django, black, pylint, and either poetry or pip-tools. This project started as a weekend thing, but we're using it in production now and it could use the full treatment (many thanks for you getting the environment variable and docker config going!).

Does that set of tools work for you? Preference between poetry and pip-tools?

I haven't see behave before. Is the idea you can reuse "Given", "When", and "Then" blocks across multiple tests? That seems pretty cool. With pytest we reuse something like the "Given" blocks with pytest fixtures. Then in the test function bodies we'll often do a comment style with given/when/then sections.

My main goal with the testing is to facilitate easy updates. We could end up running this for decades at IA, I want to make it easy to keep up with Django releases (and minimize other dependencies along the way).

from arklet.

avdempsey avatar avdempsey commented on July 20, 2024

Of course, by my own goal of limiting dependencies, an argument could be made for just using Django's built-in testing facilities. My ideal is only requiring standard lib + Django for what we deploy (well, and the database driver).

from arklet.

avdempsey avatar avdempsey commented on July 20, 2024

I'm working on getting tox set up with pytest. That way we can test arklet against a matrix of all supported Python and Django versions. Locally I'm using pyenv+tox+poetry, and that turns out to be a little bit of a learning opportunity getting all of that playing nicely.

from arklet.

avdempsey avatar avdempsey commented on July 20, 2024

The test suite is starting to take shape with #6. This adds poetry, pytest, pylint, and tox. The tox config tests arklet against the latest patch of each supported version of Django and Python, as well as the upcoming Django 4.1 and Python 3.11.

Next up is getting GitHub Actions working and increasing the test suite coverage.

from arklet.

Related Issues (5)

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.