Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Administrator Tests #695

Merged
merged 1 commit into from
Jun 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
282 changes: 282 additions & 0 deletions vms/administrator/tests/test_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
[
{
"volunteer": [
"uname1",
Copy link
Contributor

@tonythomas01 tonythomas01 May 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this representation is a start, but only half done. You need it like this.

"volunteer":  {
     "first_name":  "uname1",
      "last_name": "uname1", 
....
}

and then use it as: 

v1 = Volunteer(
+        email=volunteer['email'],
+        first_name=volunteer['first_name'],
+        last_name=volunteer['last_name'],
....
+    )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Umm... if I change this then I'd have to change the structure we earlier discussed (lists -> dict), I think this can be a part of the new issue we'll create to change use of lists to dict.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okey then. Once you link that new issue here, I will finish my review :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here you go @tonythomas01 #697

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good then. approving.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @tonythomas01 . Will this issue be taken up by you, @Monal5031 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not atm, but if time persists before I move on to postorius I'll do it.

"uname1",
"[email protected]",
"tom-fname",
"tom-lname",
"address",
"city",
"state",
"country",
"9999999999"
],
"event": [
"event-four",
"2050-05-24",
"2050-05-28"
],
"job": [
"jobOneInEventFour",
"2050-05-24",
"2050-05-24",
"jobOneFourDescription"
],
"shift": [
"2050-05-24",
"09:00",
"11:00",
"10"
],
"vshift": [
"09:30",
"10:00"
]
},
{
"volunteer": [
"uname2",
"uname2",
"[email protected]",
"peter-fname",
"peter-lname",
"address",
"city",
"state",
"country",
"9999999999"
],
"event": [
"event-one",
"2050-05-24",
"2050-05-28"
],
"job": [
"jobOneInEventOne",
"2050-05-24",
"2050-05-24",
"jobOneOneDescription"
],
"shift": [
"2050-05-24",
"18:00",
"23:00",
"10"
],
"vshift": [
"19:00",
"20:00"
]
},
{
"volunteer": [
"uname3",
"uname3",
"[email protected]",
"tom-fname",
"tom-lname",
"address",
"city",
"state",
"country",
"9999999999"
],
"event": [
"event-four",
"2050-05-24",
"2050-05-28"
],
"job": [
"jobTwoInEventFour",
"2050-05-24",
"2050-05-24",
"jobTwoFourDescription"
],
"shift": [
"2050-05-24",
"09:00",
"15:00",
"10"
],
"vshift": [
"10:00",
"11:30"
]
},
{
"volunteer": [
"uname4",
"uname4",
"[email protected]",
"harry-fname",
"harry-lname",
"address",
"city",
"state",
"country",
"9999999999"
],
"event": [
"event-one",
"2050-05-24",
"2050-05-28"
],
"job": [
"jobTwoInEventOne",
"2050-05-24",
"2050-05-24",
"jobTwoOneDescription"
],
"shift": [
"2050-05-24",
"09:00",
"11:00",
"10"
],
"vshift": [
"09:00",
"10:00"
]
},
{
"volunteer": [
"uname5",
"uname5",
"[email protected]",
"harry-fname",
"harry-lname",
"address",
"city",
"state",
"country",
"9999999999"
],
"event": [
"event-two",
"2050-05-24",
"2050-05-28"
],
"job": [
"jobOneInEventTwo",
"2050-05-24",
"2050-05-24",
"jobOneTwoDescription"
],
"shift": [
"2050-05-24",
"09:00",
"18:00",
"10"
],
"vshift": [
"12:00",
"15:00"
]
},
{
"volunteer": [
"uname6",
"uname6",
"[email protected]",
"sherlock-fname",
"sherlock-lname",
"address",
"city",
"state",
"country",
"9999999999"
],
"event": [
"event-two",
"2050-05-24",
"2050-05-28"
],
"job": [
"jobOneInEventTwo",
"2050-05-24",
"2050-05-24",
"jobOneTwoDescription"
],
"shift": [
"2050-05-24",
"09:00",
"16:00",
"10"
],
"vshift": [
"12:00",
"14:00"
]
},
{
"volunteer": [
"uname7",
"uname7",
"[email protected]",
"harvey-fname",
"harvey-lname",
"address",
"city",
"state",
"country",
"9999999999"
],
"event": [
"event-one",
"2050-05-24",
"2050-05-28"
],
"job": [
"jobThreeInEventOne",
"2050-05-24",
"2050-05-24",
"jobThreeOneDescription"
],
"shift": [
"2050-05-24",
"09:00",
"13:00",
"10"
],
"vshift": [
"12:00",
"12:30"
]
},
{
"volunteer": [
"uname8",
"uname8",
"[email protected]",
"mike-fname",
"mike-lname",
"address",
"city",
"state",
"country",
"9999999999"
],
"event": [
"event-three",
"2050-05-24",
"2050-05-28"
],
"job": [
"jobOneInEventThree",
"2050-05-24",
"2050-05-24",
"jobOneThreeDescription"
],
"shift": [
"2050-05-24",
"01:00",
"10:00",
"10"
],
"vshift": [
"01:00",
"04:00"
]
}
]
Loading