60b1f9eb915691fbac1e5d1edbcf295af628e131,tests/cli_test.py,CliTest,test_new,#CliTest#,110
Before Change
shutil.rmtree("/tmp/hg_new")
except Exception:
pass
gan = hg.GAN(graph=graph())
args = hc.Config({"size": "1", "steps": 1, "method": "train"})
cli = hg.CLI(gan, args)
cli.new("/tmp/hg_new")
self.assertTrue(os.path.isfile("/tmp/hg_new/default.json"))
After Change
shutil.rmtree("/tmp/hg_new")
except Exception:
pass
gan = mock_gan()
args = hc.Config({"size": "1", "steps": 1, "method": "train"})
cli = hg.CLI(gan, args)
cli.new("/tmp/hg_new")
self.assertTrue(os.path.isfile("/tmp/hg_new/default.json"))
In pattern: SUPERPATTERN
Frequency: 9
Non-data size: 3
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_new
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_sample
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_step
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_loads_config_errors_when_empty
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_get_dimensions
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_run
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_train
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_safe_new
Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/cli_test.py
Class Name: CliTest
Method Name: test_run_train