Giter VIP home page Giter VIP logo

Comments (2)

jandd avatar jandd commented on May 18, 2024

Test for the apps should be as self-contained as possible, but I would not mind putting common constants into a baseapp/tests/test_utils.py.

I think it would be good if each app would provide default objects (like a User/Attendee in the attendee app, a Event in the event app, ...). Adding all these to a common test module in devday would lead to a dependency cycle and apps could no longer be used independently.

We have to think about whether we want to keep our apps reusable for others or whether we want to tighlty couple them to the devday project that is currently only used for aggregating the apps per the Django philosophy of independent apps. We already have some inter-app dependencies, but no cycles as far as I'm aware of.

from devday_website.

stefanbethke avatar stefanbethke commented on May 18, 2024

Maybe a couple of MixIns would be the right pattern.

Right now, it seems all apps except for the twitter stream are heavily entangled. Maybe a refactoring splitting out DevDayUser (after removing all the PII) as a simple EmailUser (or similar) would be nice, and combining Attendee, Event and everything in talk into its own conference app. I don't think we can usefully separate Attendee and Event from talk, or any model in there. The tests in each app make heavy use of the other apps, by necessity. But I'd be happy to be convinced of the opposite!

from devday_website.

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.