Skip to content

Commit

Permalink
Fix data errors in fixtures
Browse files Browse the repository at this point in the history
E.g. incorrect language codes, fake e-mail addresses, missing
institution, etc.
  • Loading branch information
friedelwolff committed Jun 21, 2024
1 parent f12896f commit 0a3f1df
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 214 deletions.
103 changes: 57 additions & 46 deletions app/fixtures/institution.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "University of South Africa",
"abbreviation": "UNISA",
"url": "https://www.unisa.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
Expand All @@ -17,7 +17,7 @@
"name": "North-West University",
"abbreviation": "NWU",
"url": "https://www.nwu.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
Expand All @@ -28,249 +28,260 @@
"name": "University of Pretoria",
"abbreviation": "UP",
"url": "https://www.up.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 4,
"fields": {
"name": "Tshwane University of Technology",
"abbreviation": "TUT",
"url": "https://tut.ac.za/",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 5,
"fields": {
"name": "University of Johannesburg",
"abbreviation": "UJ",
"url": "https://www.uj.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 5,
"pk": 6,
"fields": {
"name": "University of KwaZulu-Natal",
"abbreviation": "UKZN",
"url": "https://www.ukzn.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 5,
"pk": 7,
"fields": {
"name": "University of the Free State",
"abbreviation": "UFS",
"url": "https://www.ufs.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 6,
"pk": 8,
"fields": {
"name": "Cape Peninsula University of Technology",
"abbreviation": "CPUT",
"url": "https://www.cput.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 7,
"pk": 9,
"fields": {
"name": "University of the Witwatersrand",
"abbreviation": "WITS",
"url": "https://www.wits.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 8,
"pk": 10,
"fields": {
"name": "University of Stellenbosch",
"abbreviation": "US",
"url": "http://www.sun.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 9,
"pk": 11,
"fields": {
"name": "University of Cape Town",
"abbreviation": "UCT",
"url": "https://uct.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 10,
"pk": 12,
"fields": {
"name": "Nelson Mandela Metropolitan University",
"abbreviation": "NMU",
"url": "https://www.mandela.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 11,
"pk": 13,
"fields": {
"name": "Walter Sisulu University",
"abbreviation": "WSU",
"url": "https://www.wsu.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 12,
"pk": 14,
"fields": {
"name": "Durban University of Technology",
"abbreviation": "DUT",
"url": "https://www.dut.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 13,
"pk": 15,
"fields": {
"name": "University of Limpopo",
"abbreviation": "UL",
"url": "https://www.ul.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 14,
"pk": 16,
"fields": {
"name": "Vaal University of Technology",
"abbreviation": "VUT",
"url": "https://www.vut.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 15,
"pk": 17,
"fields": {
"name": "University of Zululand",
"abbreviation": "UniZulu",
"url": "https://www.unizulu.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 16,
"pk": 18,
"fields": {
"name": "University of the Western Cape",
"abbreviation": "UWC",
"url": "https://www.uwc.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 17,
"pk": 19,
"fields": {
"name": "Central University of Technology",
"abbreviation": "CUT",
"url": "https://www.cut.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 18,
"pk": 20,
"fields": {
"name": "University of Fort Hare",
"abbreviation": "UFH",
"url": "https://www.ufh.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 19,
"pk": 21,
"fields": {
"name": "Rhodes University",
"abbreviation": "RU",
"url": "https://www.ru.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 20,
"pk": 22,
"fields": {
"name": "University of Venda",
"abbreviation": "Venda",
"url": "https://www.univen.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 21,
"pk": 23,
"fields": {
"name": "Mangosuthu University of Technology",
"abbreviation": "MUT",
"url": "https://www.mut.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 22,
"pk": 24,
"fields": {
"name": "Sefako Makgatho Health Sciences University",
"abbreviation": "FMHSU",
"url": "https://www.smu.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 23,
"pk": 25,
"fields": {
"name": "University of Mpumalanga",
"abbreviation": "UMP",
"url": "https://www.ump.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
},
{
"model": "general.Institution",
"pk": 24,
"pk": 26,
"fields": {
"name": "Sol Plaatje University",
"abbreviation": "SPU",
"url": "https://www.spu.ac.za/",
"email": "[email protected]",
"email": "",
"logo": ""
}
}
Expand Down
6 changes: 3 additions & 3 deletions app/fixtures/language.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"model": "general.Language",
"pk": 4,
"fields": {
"name": "Pedi",
"name": "Northern Sotho",
"iso_code": "nso"
}
},
Expand All @@ -36,7 +36,7 @@
"pk": 5,
"fields": {
"name": "Sotho",
"iso_code": "sot"
"iso_code": "st"
}
},
{
Expand All @@ -52,7 +52,7 @@
"pk": 7,
"fields": {
"name": "Swati",
"iso_code": "swz"
"iso_code": "ss"
}
},
{
Expand Down
Loading

0 comments on commit 0a3f1df

Please sign in to comment.