-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed field occurences from frontend and backend
- Loading branch information
Showing
31 changed files
with
83 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
backend/library/migrations/0008_alter_library_removed_equal_representation_nucleotides.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.15 on 2024-09-24 23:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('library', '0007_rename_amplification_cycles_library_removed_amplification_cycles_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='library', | ||
name='removed_equal_representation_nucleotides', | ||
field=models.BooleanField(blank=True, default=False, verbose_name='Equal Representation of Nucleotides'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0007_rename_amplification_cycles_library_removed_amplification_cycles_and_more | ||
0008_alter_library_removed_equal_representation_nucleotides |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
..._preparation/migrations/0005_rename_qpcr_result_librarypreparation_removed_qpcr_result.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.15 on 2024-09-24 23:54 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('library_preparation', '0004_librarypreparation_smear_analysis'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='librarypreparation', | ||
old_name='qpcr_result', | ||
new_name='removed_qpcr_result', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0004_librarypreparation_smear_analysis | ||
0005_rename_qpcr_result_librarypreparation_removed_qpcr_result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,15 +66,6 @@ def test_organism_name(self): | |
self.assertEqual(self.organism.__str__(), self.organism.name) | ||
|
||
|
||
class ConcentrationMethodTest(TestCase): | ||
def setUp(self): | ||
self.method = ConcentrationMethod(name=get_random_name()) | ||
|
||
def test_concentration_method_name(self): | ||
self.assertTrue(isinstance(self.method, ConcentrationMethod)) | ||
self.assertEqual(self.method.__str__(), self.method.name) | ||
|
||
|
||
class ReadLengthTest(TestCase): | ||
def setUp(self): | ||
self.read_length = ReadLength(name=get_random_name()) | ||
|
@@ -229,23 +220,6 @@ def test_organisms_list(self): | |
self.assertIn(self.read_length.name, read_lengths) | ||
|
||
|
||
class TestConcentrationMethods(BaseTestCase): | ||
def setUp(self): | ||
self.create_user("[email protected]", "foo-foo") | ||
self.client.login(email="[email protected]", password="foo-foo") | ||
|
||
self.concentration_method = ConcentrationMethod(name=self._get_random_name()) | ||
self.concentration_method.save() | ||
|
||
def test_organisms_list(self): | ||
"""Ensure get concentration methods behaves correctly.""" | ||
response = self.client.get(reverse("concentration-method-list")) | ||
data = response.json() | ||
concentration_methods = [x["name"] for x in data] | ||
self.assertEqual(response.status_code, 200) | ||
self.assertIn(self.concentration_method.name, concentration_methods) | ||
|
||
|
||
class TestIndexTypes(BaseTestCase): | ||
def setUp(self): | ||
self.create_user("[email protected]", "foo-foo") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
backend/sample/migrations/0012_alter_sample_removed_equal_representation_nucleotides.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.15 on 2024-09-24 23:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sample', '0011_alter_sample_measured_value_facility'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='sample', | ||
name='removed_equal_representation_nucleotides', | ||
field=models.BooleanField(blank=True, default=False, verbose_name='Equal Representation of Nucleotides'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0011_alter_sample_measured_value_facility | ||
0012_alter_sample_removed_equal_representation_nucleotides |
Oops, something went wrong.