Skip to content

Commit

Permalink
Merge branch 'spdx:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
BanulaKumarage committed Mar 12, 2023
2 parents a7b3b34 + 6040b68 commit 9b1f727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, *args, **kwargs):
else:
self.email = ""
super(LicenseRequestForm, self).__init__(*args,**kwargs)
self.fields["userEmail"] = forms.EmailField(label='Email', initial=self.email, required=False)
self.fields["userEmail"] = forms.EmailField(label='Email', initial=self.email, max_length=35, required=False)

licenseAuthorName = forms.CharField(label="License Author name", max_length=100, required=False)
fullname = forms.CharField(label="Fullname", max_length=70)
Expand All @@ -98,7 +98,7 @@ def __init__(self, *args, **kwargs):
self.fields['license_list_url'].required = False
self.fields['github_repo_url'].required = False
self.fields['organisation'].required = False
self.fields["userEmail"] = forms.EmailField(label='Email', initial=self.email, required=False)
self.fields["userEmail"] = forms.EmailField(label='Email', initial=self.email, max_length=35, required=False)

organisation = forms.ModelChoiceField(
required=False,
Expand Down
1 change: 1 addition & 0 deletions src/app/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,7 @@ def tearDown(self):

@skipIf(not getAccessToken() and not getGithubUserId() and not getGithubUserName(), "You need to set gihub parameters in the secret.py file for this test to be executed properly.")
def test_promote_license_namespace_feature(self):
"""Github access token,id and username should be added in .env to execute the test properly"""
"""Check if the license namespace is shifted to archive namespace when archive button is pressed"""
driver = self.selenium
driver.get(self.live_server_url+'/app/license_namespace_requests/')
Expand Down

0 comments on commit 9b1f727

Please sign in to comment.