Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
sgandhi1311 committed Dec 9, 2024
1 parent bdf4eb5 commit 288d057
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
4 changes: 0 additions & 4 deletions tap_mongodb/sync_strategies/oplog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
from bson import timestamp
import tap_mongodb.sync_strategies.common as common

from debugpy import listen, wait_for_client
listen(8000)
wait_for_client()

LOGGER = singer.get_logger()

SDC_DELETED_AT = "_sdc_deleted_at"
Expand Down
23 changes: 0 additions & 23 deletions tests/test_mongodb_oplog_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,14 @@
import tap_tester.menagerie as menagerie
import tap_tester.runner as runner
import os
import datetime
import unittest
import datetime
import pymongo
import string
import random
import time
import re
import pprint
import pdb
import bson
from bson import ObjectId
import singer
from functools import reduce
from singer import utils, metadata
from mongodb_common import drop_all_collections, get_test_connection
import decimal


RECORD_COUNT = {}

# def get_test_connection():
# username = os.getenv('TAP_MONGODB_USER')
# password = os.getenv('TAP_MONGODB_PASSWORD')
# host= os.getenv('TAP_MONGODB_HOST')
# auth_source = os.getenv('TAP_MONGODB_DBNAME')
# port = os.getenv('TAP_MONGODB_PORT')
# ssl = False
# conn = pymongo.MongoClient(host=host, username=username, password=password, port=port, authSource=auth_source, ssl=ssl)
# return conn

def random_string_generator(size=6, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for x in range(size))

Expand Down

0 comments on commit 288d057

Please sign in to comment.