Merge lp:~zyga/checkbox/fix-1298452 into lp:checkbox

Proposed by Zygmunt Krynicki
Status: Merged
Approved by: Brendan Donegan
Approved revision: 2842
Merged at revision: 2842
Proposed branch: lp:~zyga/checkbox/fix-1298452
Merge into: lp:checkbox
Diff against target: 40 lines (+7/-11)
2 files modified
plainbox/plainbox/impl/secure/providers/test_v1.py (+6/-7)
plainbox/plainbox/impl/secure/providers/v1.py (+1/-4)
To merge this branch: bzr merge lp:~zyga/checkbox/fix-1298452
Reviewer Review Type Date Requested Status
Brendan Donegan (community) Approve
Review via email: mp+213254@code.launchpad.net

Description of the change

fe77cbd plainbox:secure:providers: implement CHECKBOX_SHARE with Provider1.base_dir

To post a comment you must log in.
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Cool, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plainbox/plainbox/impl/secure/providers/test_v1.py'
--- plainbox/plainbox/impl/secure/providers/test_v1.py 2014-03-28 12:30:48 +0000
+++ plainbox/plainbox/impl/secure/providers/test_v1.py 2014-03-28 13:03:06 +0000
@@ -733,14 +733,13 @@
733 Verify that Provider1.CHECKBOX_SHARE is defined as the parent directory733 Verify that Provider1.CHECKBOX_SHARE is defined as the parent directory
734 of data_dir734 of data_dir
735 """735 """
736 self.assertEqual(self.provider.CHECKBOX_SHARE,736 self.assertEqual(self.provider.CHECKBOX_SHARE, self.BASE_DIR)
737 os.path.join(self.DATA_DIR, ".."))
738737
739 def test_CHECKBOX_SHARE__without_data_dir(self):738 def test_CHECKBOX_SHARE__without_base_dir(self):
740 """739 """
741 Verify that Provider1.CHECKBOX_SHARE is None without data_dir740 Verify that Provider1.CHECKBOX_SHARE is None without base_dir
742 """741 """
743 self.provider._data_dir = None742 self.provider._base_dir = None
744 self.assertEqual(self.provider.CHECKBOX_SHARE, None)743 self.assertEqual(self.provider.CHECKBOX_SHARE, None)
745744
746 def test_extra_PYTHONPATH(self):745 def test_extra_PYTHONPATH(self):
747746
=== modified file 'plainbox/plainbox/impl/secure/providers/v1.py'
--- plainbox/plainbox/impl/secure/providers/v1.py 2014-03-28 12:30:48 +0000
+++ plainbox/plainbox/impl/secure/providers/v1.py 2014-03-28 13:03:06 +0000
@@ -356,10 +356,7 @@
356 This variable is only required by one script.356 This variable is only required by one script.
357 It would be nice to remove this later on.357 It would be nice to remove this later on.
358 """358 """
359 if self._data_dir is None:359 return self.base_dir
360 return None
361 else:
362 return os.path.join(self._data_dir, "..")
363360
364 @property361 @property
365 def extra_PYTHONPATH(self):362 def extra_PYTHONPATH(self):

Subscribers

People subscribed via source and target branches