5411889c97bb6de072d9b6aeab8b6bb352579de7,tf_agents/policies/async_policy_saver_test.py,AsyncPolicySaverTest,testClose,#AsyncPolicySaverTest#,80

Before Change


    saver.save_checkpoint.assert_has_calls([mock.call(path1), mock.call(path2)])

  def testClose(self):
    saver = mock.MagicMock()
    async_saver = async_policy_saver.AsyncPolicySaver(saver)
    path = os.path.join(self.get_temp_dir(), "save_model")

    self.evaluate(tf.compat.v1.global_variables_initializer())

After Change


    saver.save_checkpoint.assert_has_calls([mock.call(path1), mock.call(path2)])

  def testClose(self):
    saver = mock.create_autospec(policy_saver.PolicySaver, instance=True)
    async_saver = async_policy_saver.AsyncPolicySaver(saver)
    path = os.path.join(self.get_temp_dir(), "save_model")

    self.evaluate(tf.compat.v1.global_variables_initializer())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tensorflow/agents
Commit Name: 5411889c97bb6de072d9b6aeab8b6bb352579de7
Time: 2020-03-18
Author: oars@google.com
File Name: tf_agents/policies/async_policy_saver_test.py
Class Name: AsyncPolicySaverTest
Method Name: testClose


Project Name: tensorflow/agents
Commit Name: 5411889c97bb6de072d9b6aeab8b6bb352579de7
Time: 2020-03-18
Author: oars@google.com
File Name: tf_agents/policies/async_policy_saver_test.py
Class Name: AsyncPolicySaverTest
Method Name: testBlockingSave


Project Name: tensorflow/agents
Commit Name: 5411889c97bb6de072d9b6aeab8b6bb352579de7
Time: 2020-03-18
Author: oars@google.com
File Name: tf_agents/policies/async_policy_saver_test.py
Class Name: AsyncPolicySaverTest
Method Name: testBlockingCheckpointSave


Project Name: tensorflow/agents
Commit Name: 5411889c97bb6de072d9b6aeab8b6bb352579de7
Time: 2020-03-18
Author: oars@google.com
File Name: tf_agents/policies/async_policy_saver_test.py
Class Name: AsyncPolicySaverTest
Method Name: testCheckpointSave