diff --git a/samplesheets/assayapps/cytof/plugins.py b/samplesheets/assayapps/cytof/plugins.py index da5c3b0b..008ff416 100644 --- a/samplesheets/assayapps/cytof/plugins.py +++ b/samplesheets/assayapps/cytof/plugins.py @@ -165,4 +165,4 @@ def update_cache(self, name=None, project=None, user=None): :param project: Project object to limit update to (optional) :param user: User object to denote user triggering the update (optional) """ - self._update_cache_rows(APP_NAME, name, project, user) + self.update_cache_rows(APP_NAME, name, project, user) diff --git a/samplesheets/assayapps/dna_sequencing/plugins.py b/samplesheets/assayapps/dna_sequencing/plugins.py index 8030ca4a..405caea5 100644 --- a/samplesheets/assayapps/dna_sequencing/plugins.py +++ b/samplesheets/assayapps/dna_sequencing/plugins.py @@ -100,4 +100,4 @@ def update_cache(self, name=None, project=None, user=None): :param project: Project object to limit update to (optional) :param user: User object to denote user triggering the update (optional) """ - self._update_cache_rows(APP_NAME, name, project, user) + self.update_cache_rows(APP_NAME, name, project, user) diff --git a/samplesheets/assayapps/generic/plugins.py b/samplesheets/assayapps/generic/plugins.py index 74de1d02..1eec422c 100644 --- a/samplesheets/assayapps/generic/plugins.py +++ b/samplesheets/assayapps/generic/plugins.py @@ -209,4 +209,4 @@ def update_cache(self, name=None, project=None, user=None): :param project: Project object to limit update to (optional) :param user: User object to denote user triggering the update (optional) """ - self._update_cache_rows(APP_NAME, name, project, user) + self.update_cache_rows(APP_NAME, name, project, user) diff --git a/samplesheets/assayapps/microarray/plugins.py b/samplesheets/assayapps/microarray/plugins.py index f8ea7dbb..09a59f2e 100644 --- a/samplesheets/assayapps/microarray/plugins.py +++ b/samplesheets/assayapps/microarray/plugins.py @@ -148,4 +148,4 @@ def update_cache(self, name=None, project=None, user=None): :param project: Project object to limit update to (optional) :param user: User object to denote user triggering the update (optional) """ - self._update_cache_rows(APP_NAME, name, project, user) + self.update_cache_rows(APP_NAME, name, project, user) diff --git a/samplesheets/plugins.py b/samplesheets/plugins.py index 5827c22e..52baed0f 100644 --- a/samplesheets/plugins.py +++ b/samplesheets/plugins.py @@ -987,7 +987,7 @@ def update_cache(self, name=None, project=None, user=None): # Common cache update utilities -------------------------------------- - def _update_cache_rows(self, app_name, name=None, project=None, user=None): + def update_cache_rows(self, app_name, name=None, project=None, user=None): """ Update cache for row-based iRODS links using get_row_path(). diff --git a/samplesheets/tests/test_plugins.py b/samplesheets/tests/test_plugins.py index 0fea0d02..1bbb3a57 100644 --- a/samplesheets/tests/test_plugins.py +++ b/samplesheets/tests/test_plugins.py @@ -113,7 +113,7 @@ def setUp(self): def test_update_cache_rows(self): """Test update_cache_rows()""" self.assertIsNone(self.cache_backend.get_cache_item(**self.item_kwargs)) - self.plugin._update_cache_rows(ASSAY_PLUGIN_NAME, project=self.project) + self.plugin.update_cache_rows(ASSAY_PLUGIN_NAME, project=self.project) cache_item = self.cache_backend.get_cache_item(**self.item_kwargs) self.assertIsNotNone(cache_item) self.assertTrue( @@ -128,6 +128,6 @@ def test_update_invalid_path(self): m.name = 'invalid/../path' m.save() with self.assertRaises(ValueError): - self.plugin._update_cache_rows( + self.plugin.update_cache_rows( ASSAY_PLUGIN_NAME, project=self.project )