
import pytest

from utils.disk_utils import DiskIO


class TestDisk:

    def __init__(self):
        self.WRITE_MB = 128
        self.WRITE_BLOCK_KB = 1024
        self.READ_BLOCK_B = 512

    @staticmethod
    def all_free_disk_space_gb():
        return reduce(lambda res, x: res+x[1], DiskIO().disks, 0)

    @pytest.mark.disk
    @pytest.mark.storage
    def test_disk_space_storage(self):
        assert self.all_free_disk_space_gb() > 3000


import pytest

from utils.disk_utils import DiskIO


class TestDisk:

    @staticmethod
    def all_free_disk_space_gb():
        return reduce(lambda res, x: res+x[1], DiskIO().disks, 0)

    @pytest.mark.disk
    @pytest.mark.storage
    def test_disk_space_storage(self):
        assert self.all_free_disk_space_gb() > 3000

Remove init mrthod from disk test
Remove init mrthod from disk test

Removed init method from test class for disk test

  
  import pytest
  
  from utils.disk_utils import DiskIO
  
  
  class TestDisk:
- 
-     def __init__(self):
-         self.WRITE_MB = 128
-         self.WRITE_BLOCK_KB = 1024
-         self.READ_BLOCK_B = 512
  
      @staticmethod
      def all_free_disk_space_gb():
          return reduce(lambda res, x: res+x[1], DiskIO().disks, 0)
  
      @pytest.mark.disk
      @pytest.mark.storage
      def test_disk_space_storage(self):
          assert self.all_free_disk_space_gb() > 3000
  
Remove init mrthod from disk test
## Code Before:

import pytest

from utils.disk_utils import DiskIO


class TestDisk:

    def __init__(self):
        self.WRITE_MB = 128
        self.WRITE_BLOCK_KB = 1024
        self.READ_BLOCK_B = 512

    @staticmethod
    def all_free_disk_space_gb():
        return reduce(lambda res, x: res+x[1], DiskIO().disks, 0)

    @pytest.mark.disk
    @pytest.mark.storage
    def test_disk_space_storage(self):
        assert self.all_free_disk_space_gb() > 3000

## Instruction:
Remove init mrthod from disk test
## Code After:

import pytest

from utils.disk_utils import DiskIO


class TestDisk:

    @staticmethod
    def all_free_disk_space_gb():
        return reduce(lambda res, x: res+x[1], DiskIO().disks, 0)

    @pytest.mark.disk
    @pytest.mark.storage
    def test_disk_space_storage(self):
        assert self.all_free_disk_space_gb() > 3000
