So some of my dangling foreign keys caused tests to failed.
I resolved them through a few different ways,
* adding initial_data to include description tables
* adding some additional data to the test fixture.
* renumbering affiliation keys to match my small test list.
I had to reorder the app list because I think there was a dependency
in the wrong order.
"library_type": 2,
"made_by": "Lorian",
"affiliations": [
- 41
+ 3
],
"replicate": 1,
"condition": 1,
"library_type": 1,
"made_by": "Lorian",
"affiliations": [
- 6
+ 4
],
"replicate": 1,
"condition": null,
[
+ {"pk": 1,
+ "model": "bcmagic.printer",
+ "fields": {"name": "ZM400 1.25x1",
+ "label_height": 1.0,
+ "notes": "Everyday use labels",
+ "label_width": 1.25,
+ "label_shape": "Square",
+ "model": "Zebra ZM400",
+ "ip_address": "131.215.34.116"}},
+ {"pk": 2,
+ "model": "bcmagic.printer",
+ "fields": {"name": "ZM400 3x3",
+ "label_height": 3.0,
+ "notes": "Larger everyday use labels",
+ "label_width": 3.0,
+ "label_shape": "Square",
+ "model": "Zebra ZM400",
+ "ip_address": "131.215.34.117"}},
{ "model": "experiments.Sequencer",
"pk": 7,
"fields": {
return RDF.Node(RDF.Uri('http://localhost%s' % (url,)))
class InventoryTestCase(TestCase):
- fixtures = ['test_user', 'test_harddisks']
+ fixtures = ['initial_data', 'test_user', 'test_harddisks']
def test_fixture(self):
# make sure that some of our test data is was loaded
"email": "bob@some.where.else"
}
},
+ {"pk": 3, "model": "samples.affiliation",
+ "fields": {
+ "users": [],
+ "contact": "group 3",
+ "name": "affiliation 3",
+ "email": "pk3@example.com"
+ }
+ },
+ {"pk": 4, "model": "samples.affiliation",
+ "fields": {
+ "users": [],
+ "contact": "group 4",
+ "name": "affiliation 4",
+ "email": "pk1@example.com"
+ }
+ },
+ {"pk": 5, "model": "samples.affiliation",
+ "fields": {
+ "users": [],
+ "contact": "group 5",
+ "name": "affiliation 5",
+ "email": "pk5@example.com"
+ }
+ },
{"pk": 153, "model": "experiments.flowcell",
"fields": {
"paired_end": true,
"library_type": 2,
"made_by": "Lorian",
"affiliations": [
- 41
+ 3
],
"replicate": 1,
"condition": 1,
"library_type": 2,
"made_by": "Brian Williams",
"affiliations": [
- 4,
- 8,
- 12
+ 1,
+ 2,
+ 4
],
"replicate": 1,
"condition": 1,
"library_type": 2,
"made_by": "Lorian",
"affiliations": [
- 41
+ 4
],
"replicate": 1,
"condition": 1,
"library_type": 2,
"made_by": "Lorian",
"affiliations": [
- 41
+ 4
],
"replicate": 1,
"condition": 1,
'htsworkflow.frontend.eland_config',
'htsworkflow.frontend.samples',
'htsworkflow.frontend.experiments',
- 'htsworkflow.frontend.inventory',
'htsworkflow.frontend.bcmagic',
+ 'htsworkflow.frontend.inventory',
'htsworkflow.frontend.labels',
)