Code Monkey home page Code Monkey logo

rough-trade-calendar's Introduction

Rough Trade Calendar

CircleCI Security Headers

Web site and iCalendar feeds listing upcoming Rough Trade in-store events.

In no way affiliated with Rough Trade!

To set up the required environments and packages, run make setup.

To run the web site locally, run make.

To scrape roughtrade.com for events, run make scrape.

Run make help to get a list of the other makefile actions.

GraphQL

This site has a GraphQL API at https://rough-trade-calendars.craiga.id.au/graphql. Have a play around with it!

rough-trade-calendar's People

Contributors

craiga avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

gasbarroni8

rough-trade-calendar's Issues

Intermittent test failure when model mommy sets timezone to UTC

rough_trade_calendar.tests.test_views.test_icalendar can fail with the following message when comparing timezones:

AssertionError: assert <UTC> == <StaticTzInfo 'UTC'>

This appears to be a special case when the timezone is set to UTC by model mommy.

Failure can be reproduced with the following:

@pytest.mark.django_db
def test_icalendar_utc(location, event, client):
    """Test iCalendar feed."""
    location.timezone = pytz.utc
    location.save()
    response = client.get(f"/{location.slug}/calendar", secure=True)
    cal = Calendar.from_ical(response.content)
    assert location.timezone == pytz.timezone(cal.decoded("X-WR-TIMEZONE"))

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.