Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #222 from open-contracting/import_equity
Browse files Browse the repository at this point in the history
chore: Replace import_equity with a fixture, as it is not to be used in production
  • Loading branch information
jpmckinney committed Mar 31, 2021
2 parents 702c373 + 6615a95 commit 81e04d9
Show file tree
Hide file tree
Showing 6 changed files with 13,762 additions and 1,212 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ env DB_NAME=covid19_test ./manage.py createsuperuser
Load test data:

```shell
env DB_NAME=covid19_test ./manage.py loaddata country
env DB_NAME=covid19_test ./manage.py loaddata redflag
env DB_NAME=covid19_test ./manage.py loaddata equitycategory
env DB_NAME=covid19_test ./manage.py loaddata equitykeywords
```

## Tasks
Expand Down
137 changes: 137 additions & 0 deletions country/fixtures/country.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
[
{
"model": "country.country",
"pk": 1,
"fields": {
"name": "Global",
"continent": "oceanic",
"population": null,
"gdp": null,
"country_code": "Global",
"country_code_alpha_2": "gl",
"currency": "global",
"healthcare_budget": null,
"healthcare_gdp_pc": null
}
},
{
"model": "country.country",
"pk": 2,
"fields": {
"name": "Kenya",
"continent": "africa",
"population": 53771296,
"gdp": 1090.0,
"country_code": "KEN",
"country_code_alpha_2": "KE",
"currency": "KES",
"healthcare_budget": 88.3,
"healthcare_gdp_pc": 5.2
}
},
{
"model": "country.country",
"pk": 3,
"fields": {
"name": "Kyrgyzstan",
"continent": "asia",
"population": 6524195,
"gdp": 1070.0,
"country_code": "KGZ",
"country_code_alpha_2": "KG",
"currency": "KGS",
"healthcare_budget": 85.7,
"healthcare_gdp_pc": 6.5
}
},
{
"model": "country.country",
"pk": 4,
"fields": {
"name": "Lithuania",
"continent": "europe",
"population": 2697935,
"gdp": 15300.0,
"country_code": "LTU",
"country_code_alpha_2": "LT",
"currency": "EUR",
"healthcare_budget": 1249.0,
"healthcare_gdp_pc": 6.8
}
},
{
"model": "country.country",
"pk": 5,
"fields": {
"name": "Mexico",
"continent": "north_america",
"population": 127800000,
"gdp": 10118.0,
"country_code": "MEX",
"country_code_alpha_2": "MX",
"currency": "MXN",
"healthcare_budget": 519.6,
"healthcare_gdp_pc": 5.5
}
},
{
"model": "country.country",
"pk": 6,
"fields": {
"name": "Moldova",
"continent": "europe",
"population": 4033963,
"gdp": 3200.0,
"country_code": "MDA",
"country_code_alpha_2": "MD",
"currency": "MDL",
"healthcare_budget": 213.0,
"healthcare_gdp_pc": 6.5
}
},
{
"model": "country.country",
"pk": 7,
"fields": {
"name": "Paraguay",
"continent": "south_america",
"population": 7132538,
"gdp": 4909.0,
"country_code": "PRY",
"country_code_alpha_2": "PY",
"currency": "PYG",
"healthcare_budget": 400.4,
"healthcare_gdp_pc": 6.65
}
},
{
"model": "country.country",
"pk": 8,
"fields": {
"name": "Ukraine",
"continent": "europe",
"population": 43733762,
"gdp": 2629.0,
"country_code": "UKR",
"country_code_alpha_2": "UA",
"currency": "UAH",
"healthcare_budget": 345.0,
"healthcare_gdp_pc": 7.72
}
},
{
"model": "country.country",
"pk": 9,
"fields": {
"name": "United Kingdom",
"continent": "europe",
"population": 67886011,
"gdp": 31446.0,
"country_code": "GBR",
"country_code_alpha_2": "GB",
"currency": "GBP",
"healthcare_budget": 4315.0,
"healthcare_gdp_pc": 9.9
}
}
]
86 changes: 86 additions & 0 deletions country/fixtures/equitycategory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[
{
"model": "country.equitycategory",
"pk": 1,
"fields": {
"category_name": "Age"
}
},
{
"model": "country.equitycategory",
"pk": 2,
"fields": {
"category_name": "Disability"
}
},
{
"model": "country.equitycategory",
"pk": 3,
"fields": {
"category_name": "Ethnicity"
}
},
{
"model": "country.equitycategory",
"pk": 4,
"fields": {
"category_name": "Gender, Sexual Orientation, Sex"
}
},
{
"model": "country.equitycategory",
"pk": 5,
"fields": {
"category_name": "General"
}
},
{
"model": "country.equitycategory",
"pk": 6,
"fields": {
"category_name": "Homelessness"
}
},
{
"model": "country.equitycategory",
"pk": 7,
"fields": {
"category_name": "Mental Health"
}
},
{
"model": "country.equitycategory",
"pk": 8,
"fields": {
"category_name": "Migration"
}
},
{
"model": "country.equitycategory",
"pk": 9,
"fields": {
"category_name": "Poverty"
}
},
{
"model": "country.equitycategory",
"pk": 10,
"fields": {
"category_name": "Prisoners / Ex-prisoners"
}
},
{
"model": "country.equitycategory",
"pk": 11,
"fields": {
"category_name": "Religion"
}
},
{
"model": "country.equitycategory",
"pk": 12,
"fields": {
"category_name": "Unemployment"
}
}
]
Loading

0 comments on commit 81e04d9

Please sign in to comment.