8240d87d7e7121311cbea652b7ce23d4eaee64b5,lib/tests/streamlit/credentials_test.py,CredentialsClassTest,test_Credentials_save,#CredentialsClassTest#,128
Before Change
m = mock_open()
with patch("streamlit.credentials.open", m, create=True) as m:
c.save()
m.return_value.write.assert_called_once_with(truth)
def test_Credentials_activate_already_activated(self):
Test Credentials.activate() already activated.
c = Credentials.get_current()
After Change
m = mock_open()
with patch("streamlit.credentials.open", m, create=True) as m:
c.save()
if sys.version_info >= (3, 0):
m.return_value.write.assert_called_once_with(truth)
else:
m.return_value.write.assert_called_once_with(truth2)
def test_Credentials_activate_already_activated(self):
Test Credentials.activate() already activated.
c = Credentials.get_current()
c.activation = Activation("some_email", "some_code", True)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: streamlit/streamlit
Commit Name: 8240d87d7e7121311cbea652b7ce23d4eaee64b5
Time: 2019-05-06
Author: 44782696+aaj-st@users.noreply.github.com
File Name: lib/tests/streamlit/credentials_test.py
Class Name: CredentialsClassTest
Method Name: test_Credentials_save
Project Name: streamlit/streamlit
Commit Name: fa49d2e6dd845cd5a8df53db7c3cef6b9af70268
Time: 2019-05-16
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorTextTest
Method Name: test_json_unserializable
Project Name: OpenMined/PySyft
Commit Name: e9903b81627dca360250c86223cfbab7933ab6a1
Time: 2020-09-17
Author: me@madhavajay.com
File Name: tests/syft/lib/python/float/float_test.py
Class Name:
Method Name: test_Floatconversion