Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 153365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:47:18+00:00 2026-05-11T09:47:18+00:00

I have a django model for an appointment in a calendar that I am

  • 0

I have a django model for an appointment in a calendar that I am attempting to write a very comprehensive test driver for. The recurring appointment occurs at some point in time and can either run on infinitely or recur for a fixed number of times. The appointment mirrors the functionality available for a Google Calendar appointment (can recur monthly/annually/weekly, every two weeks, every 3 years.)

I’m trying to come up with a unit test that will exhaustively test the basics of this implementation. I am looking for the edge cases that will define the most basic tests.

I have a lot of basic ones, but am looking for suggestions to help identify the most important cases: 1) Create a single appointment 2) Create an appointment that recurs weekly 3) … recurs monthly 4) recurs every 2 weeks 5) recurs every 2 months 6) recurs annually

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:47:18+00:00Added an answer on May 11, 2026 at 9:47 am

    Test with final days of months, leap years, and whether it will go crazy when the year has an extra second (this one hit a driver in the zune player).

    Test it behaves well when crossing years.

    That said, consider whether you are re-testing something that is part of the framework. Testing date logic can get ugly real fast, so you want to draw a line on what is part of your application and what is part of the framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a django application I have the following model: class Appointment(models.Model): #some other fields
I have a Django model with some fields that have default values specified. I
Lets say I have some Django model that has a list of numbers as
Let's say I have some Django model that is an abstract base class: class
I have a Django model which has a foreign key that is optional. I
I have Django model that looks like this: class Categories(models.Model): Model for storing the
I have a Django model with some static methods. I'd like to call the
I have a Django model that defines a TimeSlot. Each TimeSlot can hold a
I have a django model and model form that look like this: -models.py class
I have a Django model that contains a date field: class Event(models.Model): event_date =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.