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

fix tests #117

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions bot/experiment/experiment_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def experiment_generator(testing={"rest1": False, "rest2": False}):

vmin = desired_decimal_point_generator(3.2, 3.7, 1)
vmax = desired_decimal_point_generator(3.7, 4.2, 1)
ccharge = random.randint(1, 3)
cdischarge = random.randint(1, 3)
ccharge = random.randint(1, 2)
cdischarge = random.randint(1, 2)
ccutoff = random.randint(1, 100)

discharge.append(
Expand Down
3 changes: 3 additions & 0 deletions bot/twitter_api/sync_last_seen_id.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
Twitter API changes, reply functionality is no more
"""
import tweepy
from requests_oauthlib import OAuth1
from twitter_api.api_keys import Keys
Expand Down
3 changes: 3 additions & 0 deletions bot/twitter_api/tweet_reply.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
Twitter API changes, reply functionality is no more
"""
import os
import time
import pybamm
Expand Down
17 changes: 10 additions & 7 deletions test/with_keys/test_sync_last_seen_id.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import unittest
from bot.twitter_api.sync_last_seen_id import sync_last_seen_id
"""
Twitter API changes, reply functionality is no more
"""
# import unittest
# from bot.twitter_api.sync_last_seen_id import sync_last_seen_id


class TestSyncLastSeenId(unittest.TestCase):
def test_sync_last_seen_id(self):
# class TestSyncLastSeenId(unittest.TestCase):
# def test_sync_last_seen_id(self):

sync_last_seen_id(testing=True)
# sync_last_seen_id(testing=True)


if __name__ == "__main__":
unittest.main()
# if __name__ == "__main__":
# unittest.main()
Loading
Loading