Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove random commented out code #217

Merged
merged 2 commits into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions test/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,6 @@ def test_ordinals(self):
short_scale=False), "eighteen "
"trillionth")

# def nice_time(dt, lang="en-us", speech=True, use_24hour=False,
# use_ampm=False):


class TestNiceDateFormat(unittest.TestCase):
@classmethod
Expand Down Expand Up @@ -603,8 +600,7 @@ def test_nice_year(self):
dt = datetime.datetime(i, 1, 31, 13, 2, 3, tzinfo=default_timezone())
self.assertTrue(len(nice_year(dt, lang=lang)) > 0)
# Looking through the date sequence can be helpful

# print(nice_year(dt, lang=lang))
# print(nice_year(dt, lang=lang))

def test_nice_duration(self):
self.assertEqual(nice_duration(1), "one second")
Expand Down
2 changes: 1 addition & 1 deletion test/test_format_cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ def test_nice_year(self):
tzinfo=default_timezone())
self.assertTrue(len(nice_year(dt, lang=lang)) > 0)
# Looking through the date sequence can be helpful
# print(nice_year(dt, lang=lang))

# print(nice_year(dt, lang=lang))
def test_nice_duration(self):

self.assertEqual(nice_duration(1), "jedna sekunda")
Expand Down
2 changes: 0 additions & 2 deletions test/test_format_da.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ def test_convert_dacimals_da(self):
"minus enogtyve komma to tre fire nul nul")


# def nice_time(dt, lang="da-dk", speech=True, use_24hour=False,
# use_ampm=False):
class TestNiceDateFormat_da(unittest.TestCase):
def test_convert_times_da(self):
dt = datetime.datetime(2017, 1, 31, 13, 22, 3, tzinfo=default_timezone())
Expand Down
2 changes: 0 additions & 2 deletions test/test_format_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ def test_convert_decimals_de(self):
"minus einundzwanzig Komma zwei drei vier null null")


# def nice_time(dt, lang="de-de", speech=True, use_24hour=False,
# use_ampm=False):
class TestNiceDateFormat_de(unittest.TestCase):
def setUp(self):
self.old_lang = get_default_lang()
Expand Down
3 changes: 0 additions & 3 deletions test/test_format_fa.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,6 @@ def test_variant(self):



# def nice_time(dt, lang="en-us", speech=True, use_24hour=False,
# use_ampm=False):

class TestNiceDateFormat(unittest.TestCase):
@classmethod
def setUpClass(cls):
Expand Down
2 changes: 0 additions & 2 deletions test/test_format_fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ def test_convert_decimals_fr(self):
"moins vingt-et-un virgule deux trois quatre")


# def nice_time(dt, lang="en-us", speech=True, use_24hour=False,
# use_ampm=False):
class TestNiceDateFormat_fr(unittest.TestCase):
def test_convert_times_fr(self):
dt = datetime.datetime(2017, 1, 31,
Expand Down
2 changes: 0 additions & 2 deletions test/test_format_hu.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ def test_convert_decimals_hu(self):
"huszonháromezer-négyszáz százezred")


# def nice_time(dt, lang="hu-hu", speech=True, use_24hour=False,
# use_ampm=False):
class TestNiceDateFormat_hu(unittest.TestCase):
def test_convert_times_hu(self):
dt = datetime.datetime(2017, 1, 31,
Expand Down
2 changes: 0 additions & 2 deletions test/test_format_nl.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ def test_convert_decimals_nl(self):
"min éénentwintig komma twee drie vier nul nul")


# def nice_time(dt, lang="nl-nl", speech=True, use_24hour=False,
# use_ampm=False):
class TestNiceDateFormat_nl(unittest.TestCase):
def test_convert_times_nl(self):
dt = datetime.datetime(2017, 1, 31,
Expand Down
3 changes: 1 addition & 2 deletions test/test_format_sl.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,7 @@ def test_nice_year(self):
tzinfo=default_timezone())
self.assertTrue(len(nice_year(dt, lang=lang)) > 0)
# Looking through the date sequence can be helpful

# print(nice_year(dt, lang=lang))
# print(nice_year(dt, lang=lang))

def test_nice_duration(self):
# TODO implement better plural support for nice_duration
Expand Down
2 changes: 0 additions & 2 deletions test/test_format_sv.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ def test_convert_dacimals_sv(self):
"minus tjugoen komma två tre fyra noll noll")


# def nice_time(dt, lang="sv-se", speech=True, use_24hour=False,
# use_ampm=False):
class TestNiceDateFormat_sv(unittest.TestCase):
def test_convert_times_sv(self):
dt = datetime.datetime(2017, 1, 31, 13, 22, 3, tzinfo=default_timezone())
Expand Down