Skip to content

Commit 99c40b9

Browse files
t0ch1kSergeyPirogov
authored andcommitted
volumes removal and fixing CI (#12)
* maria db test fix * now it's possible to create mysql container without additional users, only with root * MySqlContainer configuration by **kwargs * version changed * - Now by default containers will be deleted with their volumes after test session - version 2.1.2 - removed codecov from travis script. Anyway it never worked
1 parent 1b40a8a commit 99c40b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
setuptools.setup(
1717
name='testcontainers',
1818
packages=setuptools.find_packages(exclude=['tests']),
19-
version='2.1.1',
19+
version='2.1.2',
2020
description=('Library provides lightweight, throwaway '
2121
'instances of common databases, '
2222
'Selenium web browsers, or anything else that can '

testcontainers/core/container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def start(self):
4646
print("Container started: ", crayons.yellow(self._container.short_id, bold=True))
4747
return self
4848

49-
def stop(self, force=True):
50-
self.get_wrapped_contaner().remove(force=force)
49+
def stop(self, force=True, delete_volume=True):
50+
self.get_wrapped_contaner().remove(force=force, v=delete_volume)
5151

5252
def __enter__(self):
5353
return self.start()

0 commit comments

Comments
 (0)