Skip to content

Commit

Permalink
Remove stray prints statement
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Jun 24, 2024
1 parent c16b3a9 commit c134e86
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions primed/cdsa/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ def test_object_does_not_exist(self):
request = self.factory.get(self.get_url(1))
request.user = self.user
with self.assertRaises(Http404):
self.get_view()(request, cc_id=1)
self.get_view()(request, cc_id=1, agreement_type=models.SignedAgreement.MEMBER)

def test_object_no_agreement_type(self):
"""Raises Http404 if object has a different agreement type."""
Expand All @@ -1302,7 +1302,6 @@ def test_object_different_agreement_type(self):
instance = factories.DataAffiliateAgreementFactory.create()
request = self.factory.get(self.get_url(instance.signed_agreement.cc_id))
request.user = self.user
print("here")
with self.assertRaises(Http404) as e:
self.get_view()(
request, cc_id=instance.signed_agreement.cc_id, agreement_type=models.SignedAgreement.MEMBER
Expand Down
1 change: 0 additions & 1 deletion primed/collaborative_analysis/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def authorization_domains(self, create, extracted, **kwargs):

# Create an authorization domain.
auth_domain = ManagedGroupFactory.create(name="auth_{}".format(self.workspace.name))
print(auth_domain)
self.workspace.authorization_domains.add(auth_domain)

@post_generation
Expand Down
2 changes: 0 additions & 2 deletions primed/dbgap/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def get_latest_snapshot(self):
return None

def get_tables(self):
print(self.object.dbgapdataaccesssnapshot_set.all())
return (
tables.dbGaPDataAccessSnapshotTable(self.object.dbgapdataaccesssnapshot_set.all()),
UserAccountSingleGroupMembershipTable(
Expand Down Expand Up @@ -690,7 +689,6 @@ def get_audit_result(self):
return instance.get_all_results()[0]

def get(self, request, *args, **kwargs):
print(self.kwargs)
self.dbgap_workspace = self.get_dbgap_workspace()
self.dbgap_application = self.get_dbgap_application()
self.audit_result = self.get_audit_result()
Expand Down

0 comments on commit c134e86

Please sign in to comment.