Skip to content

Commit

Permalink
test_schema_validation_0_4.py: Test valid data
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Sep 22, 2024
1 parent 2510e99 commit 8ea718d
Show file tree
Hide file tree
Showing 112 changed files with 2,408 additions and 1 deletion.
58 changes: 58 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"statementDate": "2021-09-11T16:15:08Z",
"publicationDetails": {
"publicationDate": "2021-09-11T00:00:00+00:00",
"bodsVersion": "0.4",
"license": "http://opendefinition.org/licenses/cc-zero",
"publisher": {
"name": "Irish Business Authority"
}
},
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"recordStatus": "updated",
"declarationSubject": "ent-93c75c87ab28f889",
"source": {
"assertedBy": [
{
"name": "Mary Walsh"
}
]
},
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"name": "Fermentcat Ltd",
"jurisdiction": {
"code": "IE",
"name": "Ireland"
},
"foundingDate": "2019-09-11",
"publicListing": {
"hasPublicListing": false
},
"identifiers": [
{
"id": "434151",
"scheme": "IE-BAU",
"schemeName": "Irish Business Authority "
}
],
"addresses": [
{
"type": "registered",
"address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick ",
"postCode": "V94 V3VT",
"country": {
"name": "Ireland",
"code": "IE"
}
}
]
}
}
]
47 changes: 47 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"statementId": "crxpru319949212398855320030147004728",
"statementDate": "2019-01-20",
"publicationDetails": {
"publicationDate": "2019-01-31",
"bodsVersion": "0.4",
"license": "http://opendefinition.org/licenses/cc-zero",
"publisher": {
"name": "Company Register, Delaware"
}
},
"recordId": "01B68D7633",
"recordType": "entity",
"recordStatus": "new",
"source": {
"type": [
"selfDeclaration"
],
"assertedBy": [
{
"name": "Maria Esteves"
}
]
},
"declaration": "bo-jtc-8755982746",
"declarationSubject": "01B68D7633",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"name": "Tecido Ltd",
"jurisdiction": {
"name": "Delaware",
"code": "US-DE"
},
"foundingDate": "2002-03-09",
"identifiers": [
{
"id": "758355",
"schemeName": "Company Registry, Delaware. Company number"
}
]
}
}
]
20 changes: 20 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_address_address.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"addresses": [
{
"address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick "
}
]
}
}
]
26 changes: 26 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_address_country.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"declarationSubject": "xyz",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "registered",
"address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick ",
"postCode": "V94 V3VT",
"country": {
"name": "Ireland",
"code": "IE"
}
}
]
}
}
]
23 changes: 23 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_address_country_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"addresses": [
{
"country": {
"name": "Ireland",
"code": "IE"
}
}
]
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"declarationSubject": "xyz",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "registered",
"address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick ",
"postCode": "V94 V3VT",
"country": {
"name": "Ireland"
}
}
]
}
}
]
20 changes: 20 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_address_postcode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"addresses": [
{
"postCode": "V94 V3VT"
}
]
}
}
]
20 changes: 20 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_address_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"addresses": [
{
"type": "registered"
}
]
}
}
]
25 changes: 25 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_addresses_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"declarationSubject": "xyz",
"statementDate": "2017-11-18",
"recordId": "123",
"recordType": "entity",
"recordDetails": {
"entityType": {
"type": "registeredEntity"
},
"isComponent": false,
"addresses": [
{
"type": "business",
"address": "23 Regent St, London",
"country": {
"name": "United Kingdom",
"code": "GB"
}
}
]
}
}
]
18 changes: 18 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_alternate_names.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"alternateNames": [
"Fermentcat Ltd"
]
}
}
]
16 changes: 16 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_dissolution_date.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"dissolutionDate": "2019-09-11"
}
}
]
17 changes: 17 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_formed_by_statute.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "stateBody"
},
"formedByStatute": {
}
}
}
]
18 changes: 18 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_formed_by_statute_date.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "stateBody"
},
"formedByStatute": {
"date": "2019-03-04"
}
}
}
]
18 changes: 18 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_formed_by_statute_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "stateBody"
},
"formedByStatute": {
"name": "statute 123"
}
}
}
]
16 changes: 16 additions & 0 deletions tests/fixtures/0.4/valid-schema/entity_founding_date.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"statementId": "2f7bf9370f1254068e5e946df067d07d",
"recordId": "ent-93c75c87ab28f889",
"recordType": "entity",
"declarationSubject": "ent-93c75c87ab28f889",
"statementDate": "2017-11-18",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity"
},
"foundingDate": "2019-09-11"
}
}
]
Loading

0 comments on commit 8ea718d

Please sign in to comment.